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.000932/0.000932, allocations: 79.75 kB / 21.19 MB, free: 3.379 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.0009825/0.0009825, allocations: 161 kB / 24.56 MB, free: 12 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 0.9943/0.9943, allocations: 177.1 MB / 205 MB, free: 5.617 MB / 186.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.2775/0.2775, allocations: 34.26 MB / 295.7 MB, free: 0.7461 MB / 266.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.793e-06/1.793e-06, allocations: 0 / 378 MB, free: 2.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.015e-05/3.194e-05, allocations: 2.312 kB / 378 MB, free: 2.656 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.006183/0.006215, allocations: 1.494 MB / 379.5 MB, free: 1.148 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004067/0.01028, allocations: 470.7 kB / 380 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.473e-05/0.01037, allocations: 0 / 380 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 4.274e-05/0.01041, allocations: 8 kB / 380 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.515e-05/0.01047, allocations: 7.875 kB / 380 MB, free: 0.668 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003198/0.01079, allocations: 27.89 kB / 380 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001712/0.01097, allocations: 39.86 kB / 380.1 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.01108, allocations: 7.938 kB / 380.1 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001743/0.01125, allocations: 31.95 kB / 380.1 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.361e-05/0.01132, allocations: 15.92 kB / 380.1 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.857e-05/0.01134, allocations: 4 kB / 380.1 MB, free: 0.543 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.79e-05/0.01138, allocations: 4 kB / 380.1 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.381e-05/0.0114, allocations: 8 kB / 380.1 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.498e-05/0.01142, allocations: 7.938 kB / 380.1 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001328/0.01155, allocations: 31.89 kB / 380.2 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.01156, allocations: 3.938 kB / 380.2 MB, free: 500 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.01156, allocations: 0 / 380.2 MB, free: 500 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.01156, allocations: 4 kB / 380.2 MB, free: 496 kB / 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.0004538/0.01202, allocations: 376.5 kB / 380.5 MB, free: 84 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.01206, allocations: 8.031 kB / 380.6 MB, free: 76 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.01222, allocations: 12.92 kB / 380.6 MB, free: 64 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001915/0.01241, allocations: 128.5 kB / 380.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.01243, allocations: 8.359 kB / 380.7 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.464e-05/0.01244, allocations: 384 / 380.7 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001762/0.01262, allocations: 92.03 kB / 380.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.01263, allocations: 192 / 380.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.01264, allocations: 4.375 kB / 380.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.01265, allocations: 7.922 kB / 380.8 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.184e-05/0.01269, allocations: 11.94 kB / 380.8 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003442/0.01614, allocations: 263.7 kB / 381.1 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.439e-05/0.01621, allocations: 27.06 kB / 381.1 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.86e-05/0.01624, allocations: 19.73 kB / 381.1 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.01626, allocations: 4 kB / 381.1 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.01629, allocations: 45.27 kB / 381.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.353e-06/0.01629, allocations: 0 / 381.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.000191/0.01648, allocations: 37.66 kB / 381.2 MB, free: 15.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.471e-05/0.01656, allocations: 81.09 kB / 381.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.01667, allocations: 173.9 kB / 381.5 MB, free: 15.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.01669, allocations: 25.7 kB / 381.5 MB, free: 14.99 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.053e-05/0.01675, allocations: 134.9 kB / 381.6 MB, free: 14.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.01677, allocations: 4.078 kB / 381.6 MB, free: 14.85 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.659e-05/0.01682, allocations: 27.36 kB / 381.6 MB, free: 14.82 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.01696, allocations: 496.1 kB / 382.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.468e-05/0.01699, allocations: 4 kB / 382.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.805e-05/0.01703, allocations: 53 kB / 382.2 MB, free: 14.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.116e-05/0.01708, allocations: 15.69 kB / 382.2 MB, free: 14.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.01708, allocations: 4 kB / 382.2 MB, free: 14.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.09e-05/0.01717, allocations: 41.69 kB / 382.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.01719, allocations: 11.94 kB / 382.3 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.01719, allocations: 0 / 382.3 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.01721, allocations: 0 / 382.3 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.071e-05/0.01729, allocations: 8.031 kB / 382.3 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.0173, allocations: 0 / 382.3 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.53e-05/0.01733, allocations: 7.984 kB / 382.3 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.01734, allocations: 0 / 382.3 MB, free: 14.15 MB / 362.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.767e-05/0.01743, allocations: 160.5 kB / 382.4 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.919e-05/0.01746, allocations: 7.891 kB / 382.4 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.99e-05/0.01749, allocations: 11.62 kB / 382.4 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.01749, allocations: 0 / 382.4 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.01749, allocations: 0 / 382.4 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.0175, allocations: 144 / 382.4 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001427/0.01764, allocations: 128.6 kB / 382.6 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.01764, allocations: 3.984 kB / 382.6 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.331e-05/0.01768, allocations: 3.984 kB / 382.6 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.01768, allocations: 0 / 382.6 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.01769, allocations: 11.88 kB / 382.6 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.01769, allocations: 0 / 382.6 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.0177, allocations: 0 / 382.6 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001549/0.01785, allocations: 187.9 kB / 382.8 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.088e-05/0.01786, allocations: 7.891 kB / 382.8 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/0.01789, allocations: 3.938 kB / 382.8 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.199e-05/0.01795, allocations: 12.02 kB / 382.8 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.327e-05/0.018, allocations: 11.98 kB / 382.8 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.01801, allocations: 0 / 382.8 MB, free: 13.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.117e-05/0.01807, allocations: 127.2 kB / 382.9 MB, free: 13.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01807, allocations: 0 / 382.9 MB, free: 13.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002523/0.01832, allocations: 4 kB / 382.9 MB, free: 13.42 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 0.0001377/0.01846, allocations: 99.23 kB / 383 MB, free: 13.31 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003146/0.02161, allocations: 15.69 kB / 383 MB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.02161, allocations: 4 kB / 383.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.944e-05/0.02164, allocations: 19.62 kB / 383.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.02189, allocations: 7.984 kB / 383.1 MB, free: 13.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005752/0.02247, allocations: 134.1 kB / 383.2 MB, free: 13.1 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.098e-05/0.02252, allocations: 59.34 kB / 383.3 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.842e-05/0.02255, allocations: 0 / 383.3 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.366e-05/0.02259, allocations: 12.5 kB / 383.3 MB, free: 13 MB / 362.7 MB Notification: Performance of SimCode: time 1.283e-06/0.02259, allocations: 0 / 383.3 MB, free: 13 MB / 362.7 MB Notification: Performance of Templates: time 0.006062/0.02866, allocations: 0.6461 MB / 383.9 MB, free: 12.36 MB / 362.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 -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: 3.1671473220922053]