Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008932/0.0008932, allocations: 76.17 kB / 9.933 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001431/0.002324, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008409/0.0008409, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0011/0.001941, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.042/1.042, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09819/1.14, allocations: 53.65 MB / 243.3 MB, free: 15.57 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2604/0.2604, allocations: 34.26 MB / 278.2 MB, free: 15.28 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02509/0.2855, allocations: 13.1 MB / 291.3 MB, free: 7.367 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 292.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.84e-05/1.995e-05, allocations: 3.078 kB / 292.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001682/0.001702, allocations: 1.551 MB / 294.2 MB, free: 4.754 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005588/0.002261, allocations: 482.7 kB / 294.6 MB, free: 4.277 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.058e-05/0.002302, allocations: 0 / 294.6 MB, free: 4.277 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.02e-05/0.002322, allocations: 3.938 kB / 294.6 MB, free: 4.273 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.322e-05/0.002345, allocations: 3.938 kB / 294.6 MB, free: 4.27 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001096/0.002455, allocations: 31.84 kB / 294.7 MB, free: 4.238 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.7e-05/0.002542, allocations: 39.84 kB / 294.7 MB, free: 4.199 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.065e-05/0.002612, allocations: 4 kB / 294.7 MB, free: 4.195 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.002744, allocations: 36.42 kB / 294.8 MB, free: 4.16 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.769e-05/0.002801, allocations: 19.91 kB / 294.8 MB, free: 4.141 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.656e-05/0.002818, allocations: 4 kB / 294.8 MB, free: 4.137 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.85e-05/0.002876, allocations: 7.984 kB / 294.8 MB, free: 4.129 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.132e-05/0.002888, allocations: 4 kB / 294.8 MB, free: 4.125 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.757e-05/0.002905, allocations: 11.94 kB / 294.8 MB, free: 4.113 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.623e-05/0.003001, allocations: 23.92 kB / 294.8 MB, free: 4.09 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.648e-05/0.003018, allocations: 0 / 294.8 MB, free: 4.09 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.003019, allocations: 0 / 294.8 MB, free: 4.09 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.682e-05/0.003036, allocations: 4 kB / 294.8 MB, free: 4.086 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003667/0.003402, allocations: 253.8 kB / 295.1 MB, free: 3.816 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.003436, allocations: 12.03 kB / 295.1 MB, free: 3.805 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.003577, allocations: 90.03 kB / 295.2 MB, free: 3.699 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.00372, allocations: 117.6 kB / 295.3 MB, free: 3.559 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.596e-06/0.003729, allocations: 4.375 kB / 295.3 MB, free: 3.555 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-06/0.003737, allocations: 384 / 295.3 MB, free: 3.555 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001159/0.003853, allocations: 98.3 kB / 295.4 MB, free: 3.438 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.00386, allocations: 192 / 295.4 MB, free: 3.438 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-06/0.003866, allocations: 4.375 kB / 295.4 MB, free: 3.434 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.003872, allocations: 3.938 kB / 295.4 MB, free: 3.43 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.129e-05/0.003893, allocations: 7.984 kB / 295.4 MB, free: 3.422 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001844/0.004078, allocations: 152.2 kB / 295.6 MB, free: 3.258 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.585e-05/0.004123, allocations: 22.62 kB / 295.6 MB, free: 3.227 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.233e-05/0.004136, allocations: 12.86 kB / 295.6 MB, free: 3.211 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.275e-05/0.004149, allocations: 0 / 295.6 MB, free: 3.211 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.004173, allocations: 34.56 kB / 295.6 MB, free: 3.168 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.004174, allocations: 0 / 295.6 MB, free: 3.168 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001048/0.004278, allocations: 49.61 kB / 295.7 MB, free: 3.113 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.681e-05/0.004305, allocations: 51.41 kB / 295.7 MB, free: 3.051 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.706e-05/0.004362, allocations: 118.6 kB / 295.8 MB, free: 2.922 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.004379, allocations: 25.7 kB / 295.9 MB, free: 2.891 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.108e-05/0.00441, allocations: 92.12 kB / 296 MB, free: 2.797 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.43e-05/0.004424, allocations: 3.984 kB / 296 MB, free: 2.793 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.708e-05/0.004451, allocations: 13.72 kB / 296 MB, free: 2.773 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.896e-05/0.00452, allocations: 314.8 kB / 296.3 MB, free: 2.457 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.121e-05/0.004532, allocations: 7.984 kB / 296.3 MB, free: 2.449 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.356e-05/0.004555, allocations: 39.42 kB / 296.3 MB, free: 2.398 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.461e-05/0.00458, allocations: 9.016 kB / 296.3 MB, free: 2.387 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.004582, allocations: 4 kB / 296.3 MB, free: 2.383 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.61e-05/0.004628, allocations: 45.62 kB / 296.4 MB, free: 2.332 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.00464, allocations: 4 kB / 296.4 MB, free: 2.328 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.004647, allocations: 3.984 kB / 296.4 MB, free: 2.324 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.437e-06/0.004656, allocations: 3.938 kB / 296.4 MB, free: 2.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.057e-05/0.004717, allocations: 8 kB / 296.4 MB, free: 2.312 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.145e-06/0.00472, allocations: 0 / 296.4 MB, free: 2.312 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.231e-05/0.004742, allocations: 7.953 kB / 296.4 MB, free: 2.305 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-06/0.004747, allocations: 3.984 kB / 296.4 MB, free: 2.301 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.114e-05/0.004798, allocations: 117.8 kB / 296.5 MB, free: 2.176 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.182e-05/0.00481, allocations: 4 kB / 296.5 MB, free: 2.172 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.972e-05/0.00483, allocations: 7.625 kB / 296.5 MB, free: 2.164 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.004832, allocations: 3.938 kB / 296.5 MB, free: 2.16 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-06/0.004834, allocations: 3.938 kB / 296.5 MB, free: 2.156 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.004836, allocations: 0 / 296.5 MB, free: 2.156 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.402e-05/0.00491, allocations: 73.88 kB / 296.6 MB, free: 2.066 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.004911, allocations: 0 / 296.6 MB, free: 2.066 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.771e-05/0.004928, allocations: 7.938 kB / 296.6 MB, free: 2.059 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.839e-06/0.004933, allocations: 3.984 kB / 296.6 MB, free: 2.055 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.32e-07/0.004934, allocations: 0 / 296.6 MB, free: 2.055 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.516e-06/0.004938, allocations: 4 kB / 296.6 MB, free: 2.051 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.004939, allocations: 3.938 kB / 296.6 MB, free: 2.047 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.00494, allocations: 0 / 296.6 MB, free: 2.047 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.598e-05/0.005006, allocations: 131.5 kB / 296.8 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.005021, allocations: 0 / 296.8 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.193e-05/0.005052, allocations: 4 kB / 296.8 MB, free: 1.898 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.252e-05/0.005085, allocations: 15.92 kB / 296.8 MB, free: 1.883 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.005088, allocations: 3.984 kB / 296.8 MB, free: 1.879 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.252e-05/0.005101, allocations: 12.86 kB / 296.8 MB, free: 1.863 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005101, allocations: 0 / 296.8 MB, free: 1.863 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001082/0.005209, allocations: 8.031 kB / 296.8 MB, free: 1.855 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.56e-05/0.005275, allocations: 76.36 kB / 296.9 MB, free: 1.773 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.41e-05/0.005349, allocations: 20.84 kB / 296.9 MB, free: 1.75 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.798e-06/0.005352, allocations: 0 / 296.9 MB, free: 1.75 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.663e-05/0.005369, allocations: 12.84 kB / 296.9 MB, free: 1.734 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001011/0.00547, allocations: 10.39 kB / 296.9 MB, free: 1.727 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005815/0.006052, allocations: 141 kB / 297.1 MB, free: 1.562 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.267e-05/0.006084, allocations: 59.34 kB / 297.1 MB, free: 1.484 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.169e-05/0.006106, allocations: 8.156 kB / 297.1 MB, free: 1.477 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.67e-05/0.006153, allocations: 55.38 kB / 297.2 MB, free: 1.422 MB / 282.7 MB Notification: Performance of SimCode: time 6.41e-07/0.006153, allocations: 0 / 297.2 MB, free: 1.422 MB / 282.7 MB Notification: Performance of Templates: time 0.002131/0.008285, allocations: 0.6931 MB / 297.9 MB, free: 0.7422 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8947980226948857]