Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.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.001981/0.001981, allocations: 100.3 kB / 19.69 MB, free: 1.805 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.002816/0.002816, allocations: 212.6 kB / 22.99 MB, free: 4.602 MB / 14.72 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 1.631/1.631, allocations: 207.7 MB / 233.8 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] 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.2659/0.2659, allocations: 44.26 MB / 330.3 MB, free: 9.309 MB / 270.1 MB " [Timeout remaining time 179] 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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002318/0.002318, allocations: 71.89 kB / 468 MB, free: 3.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1427, allocations: 61.04 MB / 0.5166 GB, free: 6.691 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00336/0.1461, allocations: 1.596 MB / 0.5182 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.1471, allocations: 0.4996 MB / 0.5187 GB, free: 4.578 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.1473, allocations: 0 / 0.5187 GB, free: 4.578 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000186/0.1475, allocations: 15.86 kB / 0.5187 GB, free: 4.562 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.111e-05/0.1475, allocations: 11.88 kB / 0.5187 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.1478, allocations: 35.91 kB / 0.5187 GB, free: 4.516 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001969/0.148, allocations: 87.75 kB / 0.5188 GB, free: 4.43 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.1481, allocations: 28.2 kB / 0.5188 GB, free: 4.402 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.855e-05/0.1482, allocations: 31.8 kB / 0.5189 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.429e-05/0.1483, allocations: 23.86 kB / 0.5189 GB, free: 4.348 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.719e-05/0.1483, allocations: 8 kB / 0.5189 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.743e-05/0.1483, allocations: 4 kB / 0.5189 GB, free: 4.336 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.308e-05/0.1484, allocations: 23.91 kB / 0.5189 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.888e-05/0.1484, allocations: 27.86 kB / 0.519 GB, free: 4.285 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001932/0.1486, allocations: 75.66 kB / 0.519 GB, free: 4.211 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.1486, allocations: 0 / 0.519 GB, free: 4.211 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1486, allocations: 3.938 kB / 0.519 GB, free: 4.207 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.1486, allocations: 4 kB / 0.519 GB, free: 4.203 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007992/0.1494, allocations: 326.9 kB / 0.5194 GB, free: 3.852 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.1495, allocations: 12.03 kB / 0.5194 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.163e-05/0.1495, allocations: 12.84 kB / 0.5194 GB, free: 3.828 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003088/0.1498, allocations: 138.3 kB / 0.5195 GB, free: 3.668 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.1499, allocations: 4.375 kB / 0.5195 GB, free: 3.664 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.138e-05/0.1499, allocations: 8.375 kB / 0.5195 GB, free: 3.656 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001915/0.1501, allocations: 77.92 kB / 0.5196 GB, free: 3.574 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.1501, allocations: 4 kB / 0.5196 GB, free: 3.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.1501, allocations: 4 kB / 0.5196 GB, free: 3.566 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/0.1501, allocations: 0 / 0.5196 GB, free: 3.566 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.604e-05/0.1502, allocations: 39.97 kB / 0.5196 GB, free: 3.527 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006204/0.1508, allocations: 280.2 kB / 0.5199 GB, free: 3.223 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001353/0.151, allocations: 42.56 kB / 0.52 GB, free: 3.172 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.944e-05/0.151, allocations: 16.89 kB / 0.52 GB, free: 3.152 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/0.151, allocations: 3.984 kB / 0.52 GB, free: 3.148 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001502/0.1512, allocations: 71.38 kB / 0.52 GB, free: 3.066 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.1512, allocations: 4 kB / 0.52 GB, free: 3.062 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002645/0.1514, allocations: 85.61 kB / 0.5201 GB, free: 2.973 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.414e-05/0.1515, allocations: 63.33 kB / 0.5202 GB, free: 2.898 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.1516, allocations: 121.8 kB / 0.5203 GB, free: 2.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.1516, allocations: 29.64 kB / 0.5203 GB, free: 2.734 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.374e-05/0.1517, allocations: 104.3 kB / 0.5204 GB, free: 2.629 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.747e-05/0.1517, allocations: 19.94 kB / 0.5204 GB, free: 2.609 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.974e-05/0.1518, allocations: 29.7 kB / 0.5205 GB, free: 2.574 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.152, allocations: 318.8 kB / 0.5208 GB, free: 2.254 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.744e-05/0.152, allocations: 16 kB / 0.5208 GB, free: 2.238 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.09e-05/0.1521, allocations: 46.5 kB / 0.5208 GB, free: 2.184 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.868e-05/0.1521, allocations: 42.58 kB / 0.5209 GB, free: 2.133 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1521, allocations: 4 kB / 0.5209 GB, free: 2.129 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001423/0.1523, allocations: 89.56 kB / 0.521 GB, free: 2.035 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.1523, allocations: 4 kB / 0.521 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.1523, allocations: 7.875 kB / 0.521 GB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.1523, allocations: 4 kB / 0.521 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.052e-05/0.1524, allocations: 7.984 kB / 0.521 GB, free: 2.012 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.1524, allocations: 12 kB / 0.521 GB, free: 2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.84e-05/0.1525, allocations: 4 kB / 0.521 GB, free: 1.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-06/0.1525, allocations: 4 kB / 0.521 GB, free: 1.992 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_u,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 0.0001314/0.1526, allocations: 125.8 kB / 0.5211 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.532e-05/0.1526, allocations: 7.953 kB / 0.5211 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.3e-05/0.1526, allocations: 8.375 kB / 0.5211 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1526, allocations: 0 / 0.5211 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.1527, allocations: 3.938 kB / 0.5212 GB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.1527, allocations: 4 kB / 0.5212 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003324/0.153, allocations: 274.2 kB / 0.5214 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.153, allocations: 4 kB / 0.5214 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.075e-05/0.153, allocations: 8 kB / 0.5214 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.153, allocations: 0 / 0.5214 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.1531, allocations: 7.922 kB / 0.5214 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1531, allocations: 0 / 0.5214 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1531, allocations: 0 / 0.5214 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002582/0.1533, allocations: 195.4 kB / 0.5216 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.613e-05/0.1533, allocations: 7.984 kB / 0.5216 GB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.939e-05/0.1534, allocations: 3.938 kB / 0.5216 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.547e-05/0.1534, allocations: 4 kB / 0.5216 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.714e-05/0.1535, allocations: 11.98 kB / 0.5216 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-06/0.1535, allocations: 8.047 kB / 0.5217 GB, free: 1.266 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.529e-05/0.1536, allocations: 95.45 kB / 0.5217 GB, free: 1.172 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1536, allocations: 0 / 0.5217 GB, free: 1.172 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002343/0.1538, allocations: 27.83 kB / 0.5218 GB, free: 1.145 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,fallingEdge.not_u,booleanPulse.pulseStart) * Number of discrete states: 1 (fallingEdge.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001086/0.1539, allocations: 92.02 kB / 0.5219 GB, free: 1.047 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001332/0.154, allocations: 43.92 kB / 0.5219 GB, free: 1.004 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.154, allocations: 3.938 kB / 0.5219 GB, free: 1 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.184e-05/0.1541, allocations: 24.64 kB / 0.5219 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003142/0.1544, allocations: 24.05 kB / 0.522 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005539/0.155, allocations: 211.1 kB / 0.5222 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.334e-05/0.155, allocations: 79.31 kB / 0.5222 GB, free: 0.625 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.277e-05/0.1551, allocations: 4 kB / 0.5222 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.202e-05/0.1551, allocations: 11.44 kB / 0.5222 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1551, allocations: 0 / 0.5222 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of Templates: time 0.004146/0.1593, allocations: 0.9799 MB / 0.5232 GB, free: 15.64 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.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: 5.3564946334809065]