Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001283/0.001283, allocations: 80.05 kB / 20.72 MB, free: 3.77 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.001484/0.001484, allocations: 173 kB / 24.14 MB, free: 364 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9012/0.9012, allocations: 158.6 MB / 186 MB, free: 2.762 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1305/0.1305, allocations: 32.38 MB / 270.7 MB, free: 14.61 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 299.1 MB, free: 2.184 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.841e-05/2.002e-05, allocations: 2.312 kB / 299.1 MB, free: 2.18 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002201/0.002221, allocations: 1.535 MB / 300.6 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007271/0.002948, allocations: 447.8 kB / 301.1 MB, free: 196 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.87e-05/0.002987, allocations: 8 kB / 301.1 MB, free: 188 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.444e-05/0.003011, allocations: 3.938 kB / 301.1 MB, free: 184 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.393e-05/0.003055, allocations: 7.875 kB / 301.1 MB, free: 176 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001536/0.003209, allocations: 19.92 kB / 301.1 MB, free: 156 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.191e-05/0.00327, allocations: 31.86 kB / 301.1 MB, free: 124 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.151e-05/0.003342, allocations: 11.97 kB / 301.1 MB, free: 112 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.42e-05/0.003426, allocations: 19.98 kB / 301.2 MB, free: 92 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.997e-05/0.003476, allocations: 11.98 kB / 301.2 MB, free: 80 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.595e-05/0.003492, allocations: 7.938 kB / 301.2 MB, free: 72 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.077e-06/0.003501, allocations: 4 kB / 301.2 MB, free: 68 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.463e-05/0.003516, allocations: 4 kB / 301.2 MB, free: 64 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.743e-05/0.003533, allocations: 11.98 kB / 301.2 MB, free: 52 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 7.063e-05/0.003604, allocations: 27.91 kB / 301.2 MB, free: 24 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.683e-06/0.003605, allocations: 3.938 kB / 301.2 MB, free: 20 kB / 282.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.003606, allocations: 0 / 301.2 MB, free: 20 kB / 282.7 MB Notification: Performance of Transformations before backend: time 3.387e-06/0.00361, allocations: 0 / 301.2 MB, free: 20 kB / 282.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.1368/0.1404, allocations: 238.5 kB / 301.5 MB, free: 19.14 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.09e-05/0.1405, allocations: 10.7 kB / 301.5 MB, free: 19.14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.227e-05/0.1405, allocations: 4.062 kB / 301.5 MB, free: 19.14 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.347e-05/0.1406, allocations: 116.7 kB / 301.6 MB, free: 19.01 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.1406, allocations: 2.781 kB / 301.6 MB, free: 19.01 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.246e-06/0.1406, allocations: 2.406 kB / 301.6 MB, free: 19.01 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001353/0.1407, allocations: 93.66 kB / 301.7 MB, free: 18.91 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.1408, allocations: 3.688 kB / 301.7 MB, free: 18.91 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.295e-06/0.1408, allocations: 2.219 kB / 301.7 MB, free: 18.91 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1408, allocations: 3.938 kB / 301.7 MB, free: 18.91 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.466e-05/0.1408, allocations: 5.453 kB / 301.7 MB, free: 18.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000238/0.141, allocations: 148 kB / 301.9 MB, free: 18.77 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.25e-05/0.1411, allocations: 23.91 kB / 301.9 MB, free: 18.75 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.3e-05/0.1411, allocations: 11.03 kB / 301.9 MB, free: 18.74 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.268e-05/0.1411, allocations: 1.219 kB / 301.9 MB, free: 18.74 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.1411, allocations: 34.09 kB / 301.9 MB, free: 18.7 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.1411, allocations: 0 / 301.9 MB, free: 18.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001128/0.1412, allocations: 43.61 kB / 302 MB, free: 18.66 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.26e-05/0.1413, allocations: 82.83 kB / 302 MB, free: 18.57 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.44e-05/0.1413, allocations: 113.5 kB / 302.2 MB, free: 18.46 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.1413, allocations: 27.55 kB / 302.2 MB, free: 18.43 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.957e-05/0.1413, allocations: 86.03 kB / 302.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.1414, allocations: 6.531 kB / 302.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.353e-05/0.1414, allocations: 19.91 kB / 302.3 MB, free: 18.33 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.294e-05/0.1414, allocations: 315.2 kB / 302.6 MB, free: 18.02 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.698e-06/0.1414, allocations: 2.422 kB / 302.6 MB, free: 18.02 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.422e-05/0.1415, allocations: 49.33 kB / 302.6 MB, free: 17.97 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.335e-05/0.1415, allocations: 13.44 kB / 302.7 MB, free: 17.96 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.1415, allocations: 0.5938 kB / 302.7 MB, free: 17.96 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.478e-05/0.1415, allocations: 39.44 kB / 302.7 MB, free: 17.93 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.1415, allocations: 6.031 kB / 302.7 MB, free: 17.93 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.1415, allocations: 1.047 kB / 302.7 MB, free: 17.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.1416, allocations: 5.062 kB / 302.7 MB, free: 17.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.582e-05/0.1416, allocations: 4.281 kB / 302.7 MB, free: 17.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.805e-06/0.1416, allocations: 2.719 kB / 302.7 MB, free: 17.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.356e-05/0.1416, allocations: 13.67 kB / 302.7 MB, free: 17.93 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-06/0.1416, allocations: 4.938 kB / 302.7 MB, free: 17.93 MB / 282.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 4.063e-05/0.1417, allocations: 109 kB / 302.8 MB, free: 17.82 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.717e-05/0.1417, allocations: 5.562 kB / 302.9 MB, free: 17.82 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.819e-05/0.1417, allocations: 5.422 kB / 302.9 MB, free: 17.82 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.1417, allocations: 6.297 kB / 302.9 MB, free: 17.81 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.1417, allocations: 1.281 kB / 302.9 MB, free: 17.81 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.1417, allocations: 1.25 kB / 302.9 MB, free: 17.81 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.2e-05/0.1418, allocations: 71.73 kB / 302.9 MB, free: 17.74 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1418, allocations: 1.312 kB / 302.9 MB, free: 17.74 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.037e-05/0.1418, allocations: 5.547 kB / 302.9 MB, free: 17.74 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.32e-07/0.1418, allocations: 0.875 kB / 302.9 MB, free: 17.74 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.26e-06/0.1418, allocations: 2.219 kB / 302.9 MB, free: 17.74 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1418, allocations: 1.438 kB / 302.9 MB, free: 17.74 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1418, allocations: 1.219 kB / 302.9 MB, free: 17.74 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.449e-05/0.1419, allocations: 139.2 kB / 303.1 MB, free: 17.61 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.724e-06/0.1419, allocations: 6.906 kB / 303.1 MB, free: 17.6 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.523e-05/0.1419, allocations: 2.281 kB / 303.1 MB, free: 17.6 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.778e-05/0.142, allocations: 6.844 kB / 303.1 MB, free: 17.6 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.196e-05/0.142, allocations: 11.94 kB / 303.1 MB, free: 17.6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.142, allocations: 5.734 kB / 303.1 MB, free: 17.6 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.986e-05/0.142, allocations: 15.47 kB / 303.1 MB, free: 17.59 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.142, allocations: 0 / 303.1 MB, free: 17.59 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000122/0.1422, allocations: 5.812 kB / 303.1 MB, free: 17.59 MB / 282.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 7.212e-05/0.1422, allocations: 79.11 kB / 303.2 MB, free: 17.52 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 6.937e-05/0.1423, allocations: 15.36 kB / 303.2 MB, free: 17.52 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.1423, allocations: 1.062 kB / 303.2 MB, free: 17.52 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.037e-05/0.1423, allocations: 13.42 kB / 303.2 MB, free: 17.51 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.1424, allocations: 5.438 kB / 303.2 MB, free: 17.51 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003633/0.1428, allocations: 129.8 kB / 303.4 MB, free: 17.39 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.422e-05/0.1428, allocations: 60.33 kB / 303.4 MB, free: 17.32 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.418e-05/0.1429, allocations: 3.609 kB / 303.4 MB, free: 17.32 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.407e-05/0.1429, allocations: 55.08 kB / 303.5 MB, free: 17.27 MB / 282.7 MB Notification: Performance of SimCode: time 5.82e-07/0.1429, allocations: 0 / 303.5 MB, free: 17.27 MB / 282.7 MB Notification: Performance of Templates: time 0.002421/0.1453, allocations: 0.6651 MB / 304.2 MB, free: 17.23 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.7802907596342266]