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.001536/0.001536, allocations: 84.47 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001653/0.001653, allocations: 163.7 kB / 23.95 MB, free: 4.156 MB / 14.72 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.363/1.363, allocations: 177.2 MB / 204.3 MB, free: 9.199 MB / 190.1 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.1957/0.1957, allocations: 32.82 MB / 293.5 MB, free: 64 kB / 270.1 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.553e-06/1.553e-06, allocations: 0 / 440.1 MB, free: 8.195 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.956e-05/2.111e-05, allocations: 2.281 kB / 440.1 MB, free: 8.191 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002394/0.002415, allocations: 1.46 MB / 441.5 MB, free: 6.723 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008065/0.003221, allocations: 450.8 kB / 442 MB, free: 6.277 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.523e-05/0.003266, allocations: 0 / 442 MB, free: 6.277 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.264e-05/0.003289, allocations: 3.938 kB / 442 MB, free: 6.273 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.253e-05/0.003332, allocations: 11.88 kB / 442 MB, free: 6.262 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001914/0.003523, allocations: 27.95 kB / 442 MB, free: 6.234 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 9.931e-05/0.003622, allocations: 39.8 kB / 442.1 MB, free: 6.195 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.508e-05/0.003687, allocations: 4 kB / 442.1 MB, free: 6.191 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.003816, allocations: 31.91 kB / 442.1 MB, free: 6.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.997e-05/0.003866, allocations: 11.98 kB / 442.1 MB, free: 6.148 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.594e-05/0.003882, allocations: 4 kB / 442.1 MB, free: 6.145 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.422e-05/0.003916, allocations: 4 kB / 442.1 MB, free: 6.141 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.097e-05/0.003937, allocations: 15.92 kB / 442.1 MB, free: 6.125 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.131e-05/0.003959, allocations: 7.984 kB / 442.1 MB, free: 6.117 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 9.987e-05/0.004059, allocations: 43.83 kB / 442.2 MB, free: 6.074 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.723e-06/0.00406, allocations: 0 / 442.2 MB, free: 6.074 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.178e-06/0.004064, allocations: 4 kB / 442.2 MB, free: 6.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.886e-06/0.004067, allocations: 0 / 442.2 MB, free: 6.07 MB / 366.1 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.0004028/0.00447, allocations: 274.2 kB / 442.5 MB, free: 5.773 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.004501, allocations: 12.03 kB / 442.5 MB, free: 5.762 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.004637, allocations: 12.92 kB / 442.5 MB, free: 5.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.004804, allocations: 129.7 kB / 442.6 MB, free: 5.598 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.004813, allocations: 384 / 442.6 MB, free: 5.598 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.546e-06/0.004821, allocations: 4.375 kB / 442.6 MB, free: 5.594 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001617/0.004983, allocations: 85.66 kB / 442.7 MB, free: 5.492 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.00499, allocations: 192 / 442.7 MB, free: 5.492 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.005001, allocations: 8.312 kB / 442.7 MB, free: 5.484 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.005008, allocations: 7.938 kB / 442.7 MB, free: 5.477 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.14e-05/0.005099, allocations: 15.98 kB / 442.7 MB, free: 5.461 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003061/0.005405, allocations: 208.6 kB / 442.9 MB, free: 5.227 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.511e-05/0.00549, allocations: 30.56 kB / 443 MB, free: 5.188 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.222e-05/0.005543, allocations: 24.89 kB / 443 MB, free: 5.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.005556, allocations: 0 / 443 MB, free: 5.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/0.005586, allocations: 38.5 kB / 443 MB, free: 5.113 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.005587, allocations: 0 / 443 MB, free: 5.113 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002311/0.005818, allocations: 69.56 kB / 443.1 MB, free: 5.039 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.005872, allocations: 77.11 kB / 443.2 MB, free: 4.945 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.695e-05/0.005959, allocations: 113.8 kB / 443.3 MB, free: 4.824 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.005977, allocations: 25.7 kB / 443.3 MB, free: 4.793 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.174e-05/0.006029, allocations: 84.27 kB / 443.4 MB, free: 4.707 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.419e-05/0.006043, allocations: 11.95 kB / 443.4 MB, free: 4.695 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.95e-05/0.006082, allocations: 21.7 kB / 443.4 MB, free: 4.668 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.006208, allocations: 310.8 kB / 443.7 MB, free: 4.355 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.097e-05/0.006259, allocations: 15.98 kB / 443.7 MB, free: 4.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.756e-05/0.006326, allocations: 47.42 kB / 443.8 MB, free: 4.281 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.995e-05/0.006406, allocations: 24.84 kB / 443.8 MB, free: 4.254 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.006408, allocations: 0 / 443.8 MB, free: 4.254 MB / 366.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001331/0.006541, allocations: 61.61 kB / 443.9 MB, free: 4.188 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.006555, allocations: 18.41 kB / 443.9 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.106e-06/0.006558, allocations: 0 / 443.9 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.033e-05/0.006568, allocations: 0 / 443.9 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.684e-05/0.006635, allocations: 7.984 kB / 443.9 MB, free: 4.164 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.276e-06/0.006638, allocations: 0 / 443.9 MB, free: 4.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.99e-05/0.006698, allocations: 8 kB / 443.9 MB, free: 4.156 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.183e-06/0.006705, allocations: 4 kB / 443.9 MB, free: 4.152 MB / 366.1 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.182e-05/0.006787, allocations: 113.8 kB / 444 MB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.026e-05/0.006817, allocations: 7.891 kB / 444 MB, free: 4.023 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.497e-05/0.006842, allocations: 11.62 kB / 444 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-06/0.006843, allocations: 4.375 kB / 444 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.006846, allocations: 0 / 444 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.006848, allocations: 0 / 444 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/0.006977, allocations: 109.2 kB / 444.1 MB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.006978, allocations: 7.938 kB / 444.1 MB, free: 3.859 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.549e-05/0.007013, allocations: 0 / 444.1 MB, free: 3.859 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.007017, allocations: 3.984 kB / 444.2 MB, free: 3.855 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.007026, allocations: 7.938 kB / 444.2 MB, free: 3.848 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.007029, allocations: 3.938 kB / 444.2 MB, free: 3.844 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.007029, allocations: 0 / 444.2 MB, free: 3.844 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001697/0.007199, allocations: 143.5 kB / 444.3 MB, free: 3.688 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.352e-05/0.007213, allocations: 11.94 kB / 444.3 MB, free: 3.676 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.007232, allocations: 7.938 kB / 444.3 MB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.387e-05/0.007316, allocations: 4 kB / 444.3 MB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.675e-05/0.007352, allocations: 11.98 kB / 444.3 MB, free: 3.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/0.007358, allocations: 3.984 kB / 444.3 MB, free: 3.648 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.348e-05/0.007412, allocations: 87.28 kB / 444.4 MB, free: 3.562 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.007412, allocations: 0 / 444.4 MB, free: 3.562 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002168/0.007629, allocations: 8 kB / 444.4 MB, free: 3.555 MB / 366.1 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 7.911e-05/0.007708, allocations: 95.28 kB / 444.5 MB, free: 3.453 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001436/0.007851, allocations: 35.91 kB / 444.6 MB, free: 3.418 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.007853, allocations: 0 / 444.6 MB, free: 3.418 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.857e-05/0.007901, allocations: 8 kB / 444.6 MB, free: 3.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002019/0.008103, allocations: 4 kB / 444.6 MB, free: 3.406 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002656/0.008369, allocations: 128.7 kB / 444.7 MB, free: 3.254 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.643e-05/0.008425, allocations: 71.34 kB / 444.8 MB, free: 3.164 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.653e-05/0.008452, allocations: 4.219 kB / 444.8 MB, free: 3.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.171e-05/0.008484, allocations: 16.44 kB / 444.8 MB, free: 3.145 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.008484, allocations: 0 / 444.8 MB, free: 3.145 MB / 366.1 MB Notification: Performance of Templates: time 0.002802/0.01129, allocations: 0.6459 MB / 445.4 MB, free: 2.508 MB / 366.1 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.3488109186291695]