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.001441/0.001441, allocations: 80.05 kB / 20.72 MB, free: 3.766 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.001752/0.001752, allocations: 173 kB / 24.14 MB, free: 356 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.8701/0.8701, allocations: 158.6 MB / 186 MB, free: 2.77 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.1184/0.1184, allocations: 32.38 MB / 270.7 MB, free: 14.6 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.804e-06/1.804e-06, allocations: 0 / 299 MB, free: 2.223 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.583e-05/2.763e-05, allocations: 2.312 kB / 299 MB, free: 2.219 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003574/0.003602, allocations: 1.488 MB / 300.5 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009145/0.004516, allocations: 447.8 kB / 301 MB, free: 284 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.86e-05/0.004565, allocations: 4 kB / 301 MB, free: 280 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.878e-05/0.004604, allocations: 7.922 kB / 301 MB, free: 272 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.992e-05/0.004674, allocations: 7.938 kB / 301 MB, free: 264 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002346/0.004908, allocations: 23.84 kB / 301 MB, free: 240 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.024e-05/0.004998, allocations: 27.92 kB / 301 MB, free: 212 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.277e-05/0.005091, allocations: 8 kB / 301.1 MB, free: 204 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001544/0.005246, allocations: 19.92 kB / 301.1 MB, free: 184 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.785e-05/0.005313, allocations: 15.97 kB / 301.1 MB, free: 168 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.196e-05/0.005335, allocations: 4 kB / 301.1 MB, free: 164 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.034e-05/0.005346, allocations: 4 kB / 301.1 MB, free: 160 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.272e-05/0.005368, allocations: 11.92 kB / 301.1 MB, free: 148 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.042e-05/0.005389, allocations: 4 kB / 301.1 MB, free: 144 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.681e-05/0.005486, allocations: 35.89 kB / 301.1 MB, free: 108 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.005489, allocations: 0 / 301.1 MB, free: 108 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.00549, allocations: 0 / 301.1 MB, free: 108 kB / 282.7 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.005494, allocations: 0 / 301.1 MB, free: 108 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.1505/0.156, allocations: 234.6 kB / 301.4 MB, free: 19.24 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.1561, allocations: 9.719 kB / 301.4 MB, free: 19.24 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.516e-05/0.1561, allocations: 8.906 kB / 301.4 MB, free: 19.24 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.314e-05/0.1562, allocations: 114.4 kB / 301.5 MB, free: 19.11 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.1562, allocations: 1.406 kB / 301.5 MB, free: 19.11 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.206e-05/0.1562, allocations: 1.906 kB / 301.5 MB, free: 19.11 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001302/0.1563, allocations: 94.88 kB / 301.6 MB, free: 19.02 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.1563, allocations: 192 / 301.6 MB, free: 19.02 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.815e-06/0.1563, allocations: 1.656 kB / 301.6 MB, free: 19.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.1563, allocations: 8.172 kB / 301.6 MB, free: 19.01 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.214e-05/0.1564, allocations: 6.703 kB / 301.6 MB, free: 19.01 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002147/0.1566, allocations: 150.6 kB / 301.8 MB, free: 18.87 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.385e-05/0.1566, allocations: 24.22 kB / 301.8 MB, free: 18.85 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.173e-05/0.1566, allocations: 5.984 kB / 301.8 MB, free: 18.84 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.305e-05/0.1567, allocations: 1.219 kB / 301.8 MB, free: 18.84 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.692e-05/0.1567, allocations: 37.22 kB / 301.8 MB, free: 18.8 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.1567, allocations: 0 / 301.8 MB, free: 18.8 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.000102/0.1568, allocations: 45.45 kB / 301.9 MB, free: 18.77 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.057e-05/0.1568, allocations: 78.23 kB / 302 MB, free: 18.67 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.52e-05/0.1568, allocations: 116 kB / 302.1 MB, free: 18.57 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.1569, allocations: 26.78 kB / 302.1 MB, free: 18.54 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.862e-05/0.1569, allocations: 88.48 kB / 302.2 MB, free: 18.45 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.6e-05/0.1569, allocations: 5.125 kB / 302.2 MB, free: 18.45 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.531e-05/0.1569, allocations: 19.44 kB / 302.2 MB, free: 18.43 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.247e-05/0.1569, allocations: 316.5 kB / 302.5 MB, free: 18.12 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.547e-06/0.157, allocations: 2.312 kB / 302.5 MB, free: 18.12 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.281e-05/0.157, allocations: 44.11 kB / 302.6 MB, free: 18.07 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.848e-05/0.157, allocations: 17.03 kB / 302.6 MB, free: 18.07 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.157, allocations: 3.203 kB / 302.6 MB, free: 18.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.549e-05/0.1571, allocations: 40.03 kB / 302.6 MB, free: 18.04 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.1571, allocations: 6.688 kB / 302.6 MB, free: 18.04 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1571, allocations: 1.406 kB / 302.6 MB, free: 18.04 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.1571, allocations: 4.719 kB / 302.6 MB, free: 18.03 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.616e-05/0.1571, allocations: 4.734 kB / 302.6 MB, free: 18.03 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.124e-06/0.1572, allocations: 0 / 302.6 MB, free: 18.03 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.571e-05/0.1572, allocations: 10.19 kB / 302.6 MB, free: 18.03 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-06/0.1572, allocations: 1.656 kB / 302.6 MB, free: 18.03 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.503e-05/0.1572, allocations: 112.5 kB / 302.8 MB, free: 17.92 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.567e-05/0.1572, allocations: 7.547 kB / 302.8 MB, free: 17.92 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.137e-05/0.1573, allocations: 9.234 kB / 302.8 MB, free: 17.92 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.1573, allocations: 5.703 kB / 302.8 MB, free: 17.91 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.1573, allocations: 2.078 kB / 302.8 MB, free: 17.91 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1573, allocations: 1.969 kB / 302.8 MB, free: 17.91 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.207e-05/0.1573, allocations: 68.92 kB / 302.8 MB, free: 17.84 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1573, allocations: 2.094 kB / 302.8 MB, free: 17.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.725e-05/0.1574, allocations: 3.422 kB / 302.9 MB, free: 17.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.1574, allocations: 0.7031 kB / 302.9 MB, free: 17.84 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.072e-06/0.1574, allocations: 4.297 kB / 302.9 MB, free: 17.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.61e-07/0.1574, allocations: 0 / 302.9 MB, free: 17.84 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.1574, allocations: 0 / 302.9 MB, free: 17.84 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.597e-05/0.1574, allocations: 133.3 kB / 303 MB, free: 17.71 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.085e-06/0.1574, allocations: 10.59 kB / 303 MB, free: 17.7 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.1575, allocations: 1.719 kB / 303 MB, free: 17.7 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.559e-05/0.1575, allocations: 12.36 kB / 303 MB, free: 17.7 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.607e-05/0.1575, allocations: 11.42 kB / 303 MB, free: 17.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.686e-06/0.1575, allocations: 4.594 kB / 303 MB, free: 17.7 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.871e-05/0.1576, allocations: 16.27 kB / 303 MB, free: 17.69 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1576, allocations: 3.688 kB / 303 MB, free: 17.69 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001135/0.1577, allocations: 6.344 kB / 303.1 MB, free: 17.69 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.544e-05/0.1577, allocations: 71.95 kB / 303.1 MB, free: 17.62 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 6.684e-05/0.1578, allocations: 18.98 kB / 303.1 MB, free: 17.62 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1578, allocations: 1.281 kB / 303.1 MB, free: 17.62 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.546e-05/0.1578, allocations: 9.656 kB / 303.2 MB, free: 17.61 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001029/0.1579, allocations: 2.469 kB / 303.2 MB, free: 17.61 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003727/0.1583, allocations: 135.6 kB / 303.3 MB, free: 17.5 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.669e-05/0.1583, allocations: 58.98 kB / 303.3 MB, free: 17.42 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.316e-05/0.1584, allocations: 6.047 kB / 303.3 MB, free: 17.42 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.442e-05/0.1584, allocations: 54.78 kB / 303.4 MB, free: 17.38 MB / 282.7 MB Notification: Performance of SimCode: time 7.22e-07/0.1584, allocations: 0 / 303.4 MB, free: 17.38 MB / 282.7 MB Notification: Performance of Templates: time 0.002446/0.1608, allocations: 0.6647 MB / 304.1 MB, free: 17.33 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 -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.8891269438900054]