Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001765/0.001765, allocations: 92.31 kB / 20.96 MB, free: 3.477 MB / 18.57 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.002024/0.002024, allocations: 161.7 kB / 24.27 MB, free: 176 kB / 18.57 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.537/1.537, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3483/0.3483, allocations: 32.8 MB / 293.9 MB, free: 1.195 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 375.2 MB, free: 4.992 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.2e-05/3.349e-05, allocations: 5.688 kB / 375.2 MB, free: 4.988 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002906/0.00294, allocations: 1.463 MB / 376.7 MB, free: 3.512 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009149/0.003854, allocations: 450.9 kB / 377.1 MB, free: 3.066 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.003e-05/0.003904, allocations: 0 / 377.1 MB, free: 3.066 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.857e-05/0.003933, allocations: 3.938 kB / 377.1 MB, free: 3.062 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.464e-05/0.003988, allocations: 11.92 kB / 377.2 MB, free: 3.051 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002271/0.004215, allocations: 27.91 kB / 377.2 MB, free: 3.023 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.004324, allocations: 35.86 kB / 377.2 MB, free: 2.988 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.574e-05/0.0044, allocations: 0 / 377.2 MB, free: 2.988 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001491/0.004549, allocations: 39.84 kB / 377.3 MB, free: 2.949 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.591e-05/0.004615, allocations: 11.98 kB / 377.3 MB, free: 2.938 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.552e-05/0.004631, allocations: 4 kB / 377.3 MB, free: 2.934 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.332e-05/0.004674, allocations: 7.984 kB / 377.3 MB, free: 2.926 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.734e-05/0.004691, allocations: 15.92 kB / 377.3 MB, free: 2.91 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.981e-05/0.004721, allocations: 11.94 kB / 377.3 MB, free: 2.898 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001151/0.004836, allocations: 31.89 kB / 377.3 MB, free: 2.867 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.004839, allocations: 4 kB / 377.3 MB, free: 2.863 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.00484, allocations: 0 / 377.3 MB, free: 2.863 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.004844, allocations: 0 / 377.3 MB, free: 2.863 MB / 346.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.0004919/0.005336, allocations: 278.2 kB / 377.6 MB, free: 2.562 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.005375, allocations: 12.03 kB / 377.6 MB, free: 2.551 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001804/0.005555, allocations: 16.92 kB / 377.6 MB, free: 2.535 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002161/0.005771, allocations: 121.7 kB / 377.8 MB, free: 2.391 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.005784, allocations: 4.375 kB / 377.8 MB, free: 2.387 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.049e-05/0.005795, allocations: 384 / 377.8 MB, free: 2.387 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001973/0.005992, allocations: 93.59 kB / 377.9 MB, free: 2.277 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.006, allocations: 192 / 377.9 MB, free: 2.277 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.006016, allocations: 4.375 kB / 377.9 MB, free: 2.273 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.006022, allocations: 7.938 kB / 377.9 MB, free: 2.266 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.746e-05/0.00612, allocations: 19.98 kB / 377.9 MB, free: 2.246 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003944/0.006514, allocations: 208.6 kB / 378.1 MB, free: 2.012 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001049/0.006619, allocations: 26.58 kB / 378.1 MB, free: 1.977 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.398e-05/0.006673, allocations: 20.84 kB / 378.1 MB, free: 1.953 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.006701, allocations: 4 kB / 378.1 MB, free: 1.949 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.48e-05/0.006736, allocations: 34.5 kB / 378.2 MB, free: 1.906 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 8.71e-07/0.006737, allocations: 0 / 378.2 MB, free: 1.906 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002715/0.007009, allocations: 69.62 kB / 378.2 MB, free: 1.832 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.484e-05/0.007074, allocations: 81.11 kB / 378.3 MB, free: 1.734 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.007178, allocations: 105.8 kB / 378.4 MB, free: 1.621 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.908e-05/0.007208, allocations: 29.7 kB / 378.5 MB, free: 1.586 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.077e-05/0.007268, allocations: 88.08 kB / 378.5 MB, free: 1.496 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.228e-05/0.007291, allocations: 7.891 kB / 378.6 MB, free: 1.488 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.065e-05/0.007331, allocations: 21.7 kB / 378.6 MB, free: 1.461 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.007517, allocations: 314.8 kB / 378.9 MB, free: 1.145 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.339e-05/0.007571, allocations: 12.11 kB / 378.9 MB, free: 1.133 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.902e-05/0.00765, allocations: 59.41 kB / 379 MB, free: 1.062 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.022e-05/0.00774, allocations: 24.84 kB / 379 MB, free: 1.035 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.007742, allocations: 0 / 379 MB, free: 1.035 MB / 346.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001437/0.007885, allocations: 57.69 kB / 379 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.007901, allocations: 7.938 kB / 379 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.007906, allocations: 0 / 379 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.007924, allocations: 3.938 kB / 379 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.203e-05/0.007996, allocations: 7.984 kB / 379.1 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.008001, allocations: 4.031 kB / 379.1 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.13e-05/0.008062, allocations: 11.94 kB / 379.1 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.008072, allocations: 3.984 kB / 379.1 MB, free: 0.9336 MB / 346.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 9.954e-05/0.008172, allocations: 113.8 kB / 379.2 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.148e-05/0.008203, allocations: 7.891 kB / 379.2 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.095e-05/0.008224, allocations: 7.766 kB / 379.2 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.008231, allocations: 3.984 kB / 379.2 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.008234, allocations: 0 / 379.2 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.008236, allocations: 0 / 379.2 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001596/0.008396, allocations: 105.3 kB / 379.3 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.008397, allocations: 8 kB / 379.3 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.058e-05/0.008437, allocations: 3.984 kB / 379.3 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.008439, allocations: 0 / 379.3 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.008452, allocations: 11.94 kB / 379.3 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.008453, allocations: 0 / 379.3 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.008454, allocations: 0 / 379.3 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000204/0.008658, allocations: 151.5 kB / 379.5 MB, free: 488 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.878e-06/0.008668, allocations: 3.953 kB / 379.5 MB, free: 484 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.008692, allocations: 7.938 kB / 379.5 MB, free: 476 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.231e-05/0.008784, allocations: 16.02 kB / 379.5 MB, free: 460 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.488e-05/0.008839, allocations: 4 kB / 379.5 MB, free: 456 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.723e-06/0.008846, allocations: 3.984 kB / 379.5 MB, free: 452 kB / 346.7 MB Notification: Performance of sorting global known variables: time 6.032e-05/0.008906, allocations: 83.28 kB / 379.6 MB, free: 368 kB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008906, allocations: 0 / 379.6 MB, free: 368 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002345/0.009141, allocations: 12 kB / 379.6 MB, free: 356 kB / 346.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 0.0001366/0.009277, allocations: 95.23 kB / 379.7 MB, free: 248 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001572/0.009434, allocations: 27.92 kB / 379.7 MB, free: 220 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.009436, allocations: 4 kB / 379.7 MB, free: 216 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.008e-05/0.009486, allocations: 12 kB / 379.7 MB, free: 204 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000237/0.009723, allocations: 5.859 kB / 379.7 MB, free: 200 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003772/0.0101, allocations: 136.5 kB / 379.9 MB, free: 36 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000109/0.01021, allocations: 67.25 kB / 379.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.293e-05/0.01024, allocations: 0 / 379.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.48e-05/0.01029, allocations: 12.5 kB / 380 MB, free: 15.93 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01029, allocations: 4.062 kB / 380 MB, free: 15.93 MB / 362.7 MB Notification: Performance of Templates: time 0.003372/0.01366, allocations: 0.6506 MB / 380.6 MB, free: 15.28 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.809959682985209]