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.0009775/0.0009775, allocations: 80.92 kB / 21.5 MB, free: 2.992 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.00102/0.00102, allocations: 172.5 kB / 24.92 MB, free: 8.723 MB / 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.9249/0.9249, allocations: 177.2 MB / 205.3 MB, free: 4.473 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.1383/0.1383, allocations: 32.8 MB / 294.6 MB, free: 15.41 MB / 282.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.423e-06/1.423e-06, allocations: 0 / 323.3 MB, free: 2.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.32e-05/1.462e-05, allocations: 2.312 kB / 323.3 MB, free: 2.746 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.0022/0.002215, allocations: 1.552 MB / 324.8 MB, free: 1.184 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008308/0.003046, allocations: 474.6 kB / 325.3 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.507e-05/0.003101, allocations: 0 / 325.3 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.228e-05/0.003133, allocations: 3.938 kB / 325.3 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.585e-05/0.003189, allocations: 0 / 325.3 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002426/0.003432, allocations: 35.89 kB / 325.3 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.826e-05/0.00353, allocations: 31.86 kB / 325.3 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.92e-05/0.003609, allocations: 8 kB / 325.3 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001227/0.003732, allocations: 39.77 kB / 325.4 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.301e-05/0.003785, allocations: 11.98 kB / 325.4 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.502e-05/0.0038, allocations: 4 kB / 325.4 MB, free: 0.582 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.545e-05/0.003855, allocations: 4 kB / 325.4 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.587e-05/0.003871, allocations: 11.92 kB / 325.4 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.568e-05/0.003887, allocations: 8 kB / 325.4 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001002/0.003987, allocations: 31.91 kB / 325.5 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.003989, allocations: 4 kB / 325.5 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.71e-07/0.003989, allocations: 0 / 325.5 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.003993, allocations: 0 / 325.5 MB, free: 0.5234 MB / 298.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.0003024/0.004296, allocations: 252.8 kB / 325.7 MB, free: 260 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.00435, allocations: 15.98 kB / 325.7 MB, free: 244 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000124/0.004474, allocations: 16.92 kB / 325.7 MB, free: 228 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/0.004612, allocations: 113.8 kB / 325.9 MB, free: 88 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.167e-06/0.004622, allocations: 4.375 kB / 325.9 MB, free: 84 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.747e-06/0.00463, allocations: 4.312 kB / 325.9 MB, free: 80 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.004752, allocations: 94.36 kB / 326 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.004759, allocations: 192 / 326 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.004769, allocations: 8.359 kB / 326 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.004775, allocations: 3.938 kB / 326 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.09e-05/0.004795, allocations: 4 kB / 326 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001903/0.004986, allocations: 148.3 kB / 326.1 MB, free: 15.79 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.304e-05/0.005029, allocations: 22.52 kB / 326.1 MB, free: 15.76 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.249e-05/0.005041, allocations: 8.922 kB / 326.1 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.12e-05/0.005052, allocations: 0 / 326.1 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.005074, allocations: 42.56 kB / 326.2 MB, free: 15.7 MB / 314.7 MB Notification: Performance of pre-optimization done (n=2): time 7.11e-07/0.005075, allocations: 0 / 326.2 MB, free: 15.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001017/0.005177, allocations: 45.61 kB / 326.2 MB, free: 15.64 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.077e-05/0.005207, allocations: 77.11 kB / 326.3 MB, free: 15.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.02e-05/0.005278, allocations: 118.7 kB / 326.4 MB, free: 15.42 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.005295, allocations: 25.7 kB / 326.4 MB, free: 15.39 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.126e-05/0.005326, allocations: 84.12 kB / 326.5 MB, free: 15.3 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.183e-05/0.005348, allocations: 15.89 kB / 326.5 MB, free: 15.29 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.55e-05/0.005374, allocations: 13.72 kB / 326.6 MB, free: 15.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.533e-05/0.005449, allocations: 318.8 kB / 326.9 MB, free: 14.95 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.337e-06/0.005458, allocations: 4.125 kB / 326.9 MB, free: 14.95 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.727e-05/0.005486, allocations: 43.42 kB / 326.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.351e-05/0.005509, allocations: 16.78 kB / 326.9 MB, free: 14.87 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.005511, allocations: 0 / 326.9 MB, free: 14.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.875e-05/0.00556, allocations: 45.62 kB / 327 MB, free: 14.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.00557, allocations: 4 kB / 327 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.005574, allocations: 0 / 327 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.005587, allocations: 3.938 kB / 327 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.54e-05/0.005632, allocations: 4 kB / 327 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.975e-06/0.005635, allocations: 0 / 327 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.369e-05/0.005659, allocations: 11.98 kB / 327 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.002e-06/0.005665, allocations: 8.031 kB / 327 MB, free: 14.79 MB / 314.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.389e-05/0.005719, allocations: 109.8 kB / 327.1 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.426e-05/0.005733, allocations: 0 / 327.1 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.019e-05/0.005753, allocations: 7.625 kB / 327.1 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.005756, allocations: 3.938 kB / 327.1 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.005757, allocations: 0 / 327.1 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.00576, allocations: 3.984 kB / 327.1 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.199e-05/0.005842, allocations: 77.89 kB / 327.2 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.005843, allocations: 0 / 327.2 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.31e-05/0.005856, allocations: 3.984 kB / 327.2 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.005858, allocations: 4 kB / 327.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.005865, allocations: 4.141 kB / 327.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.005865, allocations: 0 / 327.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.005867, allocations: 3.938 kB / 327.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.301e-05/0.00594, allocations: 135.5 kB / 327.4 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-06/0.005947, allocations: 4 kB / 327.4 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.005961, allocations: 0 / 327.4 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.511e-05/0.005996, allocations: 7.984 kB / 327.4 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.887e-05/0.006035, allocations: 15.92 kB / 327.4 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.006038, allocations: 0 / 327.4 MB, free: 14.37 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.449e-05/0.006052, allocations: 21.19 kB / 327.4 MB, free: 14.35 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006052, allocations: 0 / 327.4 MB, free: 14.35 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001259/0.006178, allocations: 8 kB / 327.4 MB, free: 14.34 MB / 314.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.893e-05/0.006247, allocations: 76.41 kB / 327.5 MB, free: 14.26 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.508e-05/0.006312, allocations: 16.8 kB / 327.5 MB, free: 14.24 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.006314, allocations: 0 / 327.5 MB, free: 14.24 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.571e-05/0.00633, allocations: 8.859 kB / 327.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001077/0.006438, allocations: 11.94 kB / 327.5 MB, free: 14.21 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003381/0.006776, allocations: 140.5 kB / 327.7 MB, free: 14.05 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.167e-05/0.006808, allocations: 55.36 kB / 327.7 MB, free: 13.98 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.175e-05/0.006829, allocations: 7.922 kB / 327.7 MB, free: 13.97 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.605e-05/0.006875, allocations: 51.38 kB / 327.8 MB, free: 13.92 MB / 314.7 MB Notification: Performance of SimCode: time 5.71e-07/0.006876, allocations: 0 / 327.8 MB, free: 13.92 MB / 314.7 MB Notification: Performance of Templates: time 0.002169/0.009044, allocations: 0.6662 MB / 328.4 MB, free: 13.26 MB / 314.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 -s gbode -gbm=radauIIA3 -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: 2.7742303661070764]