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.001022/0.001022, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001091/0.001091, allocations: 161 kB / 24.56 MB, free: 16 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.029/1.029, allocations: 177.1 MB / 205 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] 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.2658/0.2658, allocations: 32.81 MB / 294.3 MB, free: 1.293 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 2.154e-06/2.154e-06, allocations: 0 / 376 MB, free: 4.723 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.634e-05/3.849e-05, allocations: 9.766 kB / 376 MB, free: 4.715 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002516/0.002555, allocations: 1.494 MB / 377.5 MB, free: 3.207 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007301/0.003285, allocations: 474.7 kB / 378 MB, free: 2.738 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.671e-05/0.003342, allocations: 4 kB / 378 MB, free: 2.734 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.562e-05/0.003377, allocations: 7.922 kB / 378 MB, free: 2.727 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.585e-05/0.003433, allocations: 3.938 kB / 378 MB, free: 2.723 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002866/0.00372, allocations: 23.91 kB / 378 MB, free: 2.699 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001151/0.003835, allocations: 43.84 kB / 378 MB, free: 2.656 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.54e-05/0.00393, allocations: 11.94 kB / 378.1 MB, free: 2.645 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000148/0.004078, allocations: 31.91 kB / 378.1 MB, free: 2.613 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.072e-05/0.004139, allocations: 7.984 kB / 378.1 MB, free: 2.605 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.946e-05/0.004158, allocations: 4 kB / 378.1 MB, free: 2.602 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.749e-05/0.004206, allocations: 8 kB / 378.1 MB, free: 2.594 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.522e-05/0.004221, allocations: 7.922 kB / 378.1 MB, free: 2.586 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.554e-05/0.004247, allocations: 11.98 kB / 378.1 MB, free: 2.574 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.004376, allocations: 31.84 kB / 378.2 MB, free: 2.543 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.474e-06/0.004378, allocations: 4 kB / 378.2 MB, free: 2.539 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.004379, allocations: 3.938 kB / 378.2 MB, free: 2.535 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.004385, allocations: 4 kB / 378.2 MB, free: 2.531 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.0004413/0.004827, allocations: 372.5 kB / 378.5 MB, free: 2.133 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.004874, allocations: 8.031 kB / 378.5 MB, free: 2.125 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.005021, allocations: 12.94 kB / 378.5 MB, free: 2.113 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001911/0.005212, allocations: 124.5 kB / 378.7 MB, free: 1.965 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.005223, allocations: 384 / 378.7 MB, free: 1.965 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.005238, allocations: 384 / 378.7 MB, free: 1.965 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001676/0.005405, allocations: 112 kB / 378.8 MB, free: 1.832 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.005414, allocations: 192 / 378.8 MB, free: 1.832 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.005426, allocations: 4.375 kB / 378.8 MB, free: 1.828 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.005435, allocations: 3.938 kB / 378.8 MB, free: 1.824 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.169e-05/0.005467, allocations: 4 kB / 378.8 MB, free: 1.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003275/0.005794, allocations: 267.8 kB / 379.1 MB, free: 1.523 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.392e-05/0.005858, allocations: 27.12 kB / 379.1 MB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.123e-05/0.005879, allocations: 11.69 kB / 379.1 MB, free: 1.469 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.005904, allocations: 3.938 kB / 379.1 MB, free: 1.465 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.005933, allocations: 45.33 kB / 379.1 MB, free: 1.41 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.673e-06/0.005935, allocations: 0 / 379.1 MB, free: 1.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001733/0.006108, allocations: 45.64 kB / 379.2 MB, free: 1.359 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/0.006153, allocations: 81.11 kB / 379.3 MB, free: 1.262 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.973e-05/0.006243, allocations: 165.9 kB / 379.4 MB, free: 1.082 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.006265, allocations: 29.7 kB / 379.5 MB, free: 1.047 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.845e-05/0.006323, allocations: 134.9 kB / 379.6 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.158e-05/0.006345, allocations: 7.953 kB / 379.6 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.318e-05/0.006378, allocations: 19.38 kB / 379.6 MB, free: 0.875 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.006516, allocations: 0.4923 MB / 380.1 MB, free: 380 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.849e-05/0.006534, allocations: 3.938 kB / 380.1 MB, free: 376 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.701e-05/0.006571, allocations: 45.08 kB / 380.2 MB, free: 316 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.078e-05/0.006612, allocations: 23.92 kB / 380.2 MB, free: 288 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.006615, allocations: 4 kB / 380.2 MB, free: 284 kB / 346.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.113e-05/0.006686, allocations: 41.69 kB / 380.2 MB, free: 236 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.006701, allocations: 7.938 kB / 380.2 MB, free: 228 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.006706, allocations: 0 / 380.2 MB, free: 228 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.006722, allocations: 0 / 380.2 MB, free: 228 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.182e-05/0.006804, allocations: 15.86 kB / 380.2 MB, free: 212 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.00681, allocations: 0 / 380.2 MB, free: 212 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.073e-05/0.006841, allocations: 8 kB / 380.3 MB, free: 204 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.006846, allocations: 0 / 380.3 MB, free: 204 kB / 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 8.194e-05/0.006928, allocations: 160.6 kB / 380.4 MB, free: 32 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.069e-05/0.006949, allocations: 11.89 kB / 380.4 MB, free: 20 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.909e-05/0.006978, allocations: 11.61 kB / 380.4 MB, free: 12 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.00698, allocations: 0 / 380.4 MB, free: 12 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.006985, allocations: 0 / 380.4 MB, free: 12 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.006988, allocations: 0 / 380.4 MB, free: 12 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001162/0.007104, allocations: 120.6 kB / 380.5 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.007106, allocations: 0 / 380.5 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.076e-05/0.007126, allocations: 0 / 380.5 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.007128, allocations: 4 kB / 380.6 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-06/0.007137, allocations: 3.938 kB / 380.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.007138, allocations: 4 kB / 380.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.007141, allocations: 3.984 kB / 380.6 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001148/0.007255, allocations: 187.9 kB / 380.7 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.016e-05/0.007266, allocations: 7.938 kB / 380.8 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/0.007289, allocations: 11.94 kB / 380.8 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.7e-05/0.007326, allocations: 4 kB / 380.8 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.567e-05/0.007372, allocations: 3.984 kB / 380.8 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.007375, allocations: 0 / 380.8 MB, free: 15.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.824e-05/0.007423, allocations: 135.2 kB / 380.9 MB, free: 15.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007423, allocations: 0 / 380.9 MB, free: 15.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001475/0.007571, allocations: 12.03 kB / 380.9 MB, free: 15.47 MB / 362.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 8.784e-05/0.007658, allocations: 87.25 kB / 381 MB, free: 15.37 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001037/0.007762, allocations: 27.67 kB / 381 MB, free: 15.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.007764, allocations: 0 / 381 MB, free: 15.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.319e-05/0.007787, allocations: 15.62 kB / 381 MB, free: 15.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001608/0.007948, allocations: 0 / 381 MB, free: 15.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004557/0.008403, allocations: 142.2 kB / 381.2 MB, free: 15.15 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.522e-05/0.008439, allocations: 55.36 kB / 381.2 MB, free: 15.08 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.198e-05/0.008461, allocations: 4 kB / 381.2 MB, free: 15.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.598e-05/0.008497, allocations: 20.42 kB / 381.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of SimCode: time 7.21e-07/0.008497, allocations: 0 / 381.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of Templates: time 0.002543/0.01104, allocations: 0.643 MB / 381.9 MB, free: 14.41 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1971822259947658]