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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 110 kB / 19.69 MB, free: 2.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 188 kB / 22.98 MB, free: 5.016 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.712/1.712, allocations: 207.6 MB / 233.7 MB, free: 10.01 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.2417/0.2417, allocations: 44.23 MB / 330.2 MB, free: 9.559 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002327/0.002327, allocations: 70.88 kB / 467.9 MB, free: 4.047 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1474, allocations: 61.04 MB / 0.5166 GB, free: 6.867 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003451/0.1508, allocations: 1.631 MB / 0.5182 GB, free: 5.227 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001076/0.1519, allocations: 0.5307 MB / 0.5187 GB, free: 4.688 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.152, allocations: 4 kB / 0.5187 GB, free: 4.684 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001408/0.1522, allocations: 11.86 kB / 0.5187 GB, free: 4.672 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.278e-05/0.1522, allocations: 11.88 kB / 0.5187 GB, free: 4.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002412/0.1525, allocations: 39.91 kB / 0.5188 GB, free: 4.621 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001829/0.1527, allocations: 87.69 kB / 0.5188 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.1528, allocations: 28.2 kB / 0.5189 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.368e-05/0.1529, allocations: 31.92 kB / 0.5189 GB, free: 4.477 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.01e-05/0.153, allocations: 27.8 kB / 0.5189 GB, free: 4.449 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.618e-05/0.153, allocations: 8 kB / 0.5189 GB, free: 4.441 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.78e-05/0.153, allocations: 8 kB / 0.5189 GB, free: 4.434 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.307e-05/0.153, allocations: 15.97 kB / 0.5189 GB, free: 4.418 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.46e-05/0.1531, allocations: 43.73 kB / 0.519 GB, free: 4.375 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001721/0.1533, allocations: 71.66 kB / 0.5191 GB, free: 4.305 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1533, allocations: 3.938 kB / 0.5191 GB, free: 4.301 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1533, allocations: 0 / 0.5191 GB, free: 4.301 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.1533, allocations: 0 / 0.5191 GB, free: 4.301 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.0007072/0.154, allocations: 322.9 kB / 0.5194 GB, free: 3.953 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.154, allocations: 12.03 kB / 0.5194 GB, free: 3.941 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.665e-05/0.1541, allocations: 12.84 kB / 0.5194 GB, free: 3.93 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003188/0.1544, allocations: 138.4 kB / 0.5195 GB, free: 3.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/0.1544, allocations: 8.375 kB / 0.5195 GB, free: 3.762 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.894e-05/0.1545, allocations: 12.31 kB / 0.5195 GB, free: 3.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001884/0.1546, allocations: 73.98 kB / 0.5196 GB, free: 3.672 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.1547, allocations: 0 / 0.5196 GB, free: 3.672 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.1547, allocations: 4 kB / 0.5196 GB, free: 3.668 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1547, allocations: 0 / 0.5196 GB, free: 3.668 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.77e-05/0.1548, allocations: 35.97 kB / 0.5197 GB, free: 3.633 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000694/0.1555, allocations: 331.6 kB / 0.52 GB, free: 3.266 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001233/0.1556, allocations: 38.62 kB / 0.52 GB, free: 3.219 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.844e-05/0.1556, allocations: 16.88 kB / 0.52 GB, free: 3.199 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.1556, allocations: 3.938 kB / 0.52 GB, free: 3.195 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001463/0.1558, allocations: 75.33 kB / 0.5201 GB, free: 3.109 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.1558, allocations: 4 kB / 0.5201 GB, free: 3.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002779/0.1561, allocations: 89.55 kB / 0.5202 GB, free: 3.012 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.1561, allocations: 59.39 kB / 0.5202 GB, free: 2.941 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.1563, allocations: 142.9 kB / 0.5204 GB, free: 2.793 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.1563, allocations: 25.7 kB / 0.5204 GB, free: 2.762 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.725e-05/0.1564, allocations: 96.14 kB / 0.5205 GB, free: 2.664 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.075e-05/0.1564, allocations: 27.78 kB / 0.5205 GB, free: 2.637 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.142e-05/0.1565, allocations: 25.72 kB / 0.5205 GB, free: 2.605 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.1566, allocations: 322.8 kB / 0.5209 GB, free: 2.281 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.832e-05/0.1567, allocations: 19.98 kB / 0.5209 GB, free: 2.262 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.321e-05/0.1567, allocations: 30.58 kB / 0.5209 GB, free: 2.223 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.768e-05/0.1568, allocations: 54.5 kB / 0.521 GB, free: 2.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1568, allocations: 0 / 0.521 GB, free: 2.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002391/0.1571, allocations: 97.5 kB / 0.521 GB, free: 2.059 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.1571, allocations: 4 kB / 0.5211 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1571, allocations: 0 / 0.5211 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.295e-05/0.1571, allocations: 3.938 kB / 0.5211 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.712e-05/0.1572, allocations: 12 kB / 0.5211 GB, free: 2.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.1572, allocations: 0 / 0.5211 GB, free: 2.039 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.528e-05/0.1573, allocations: 16.06 kB / 0.5211 GB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.1573, allocations: 0 / 0.5211 GB, free: 2.023 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.0001166/0.1574, allocations: 125.8 kB / 0.5212 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.224e-05/0.1574, allocations: 15.91 kB / 0.5212 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.802e-05/0.1575, allocations: 20.64 kB / 0.5212 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1575, allocations: 0 / 0.5212 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.1575, allocations: 0 / 0.5212 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1575, allocations: 4 kB / 0.5212 GB, free: 1.848 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003892/0.1579, allocations: 305.6 kB / 0.5215 GB, free: 1.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1579, allocations: 0 / 0.5215 GB, free: 1.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.567e-05/0.1579, allocations: 7.938 kB / 0.5215 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.1579, allocations: 0 / 0.5215 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.158, allocations: 12 kB / 0.5216 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.158, allocations: 0 / 0.5216 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.158, allocations: 0 / 0.5216 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002557/0.1582, allocations: 191.6 kB / 0.5217 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.06e-05/0.1582, allocations: 7.984 kB / 0.5217 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.011e-05/0.1583, allocations: 3.938 kB / 0.5217 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.622e-05/0.1583, allocations: 7.984 kB / 0.5218 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.125e-05/0.1584, allocations: 16.05 kB / 0.5218 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.225e-06/0.1584, allocations: 4 kB / 0.5218 GB, free: 1.238 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.801e-05/0.1585, allocations: 101.1 kB / 0.5219 GB, free: 1.141 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1585, allocations: 0 / 0.5219 GB, free: 1.141 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002418/0.1587, allocations: 23.92 kB / 0.5219 GB, free: 1.117 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.0001164/0.1589, allocations: 99.19 kB / 0.522 GB, free: 1.012 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000147/0.159, allocations: 36.53 kB / 0.522 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.159, allocations: 0 / 0.522 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.558e-05/0.1591, allocations: 28 kB / 0.522 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003376/0.1594, allocations: 30.73 kB / 0.5221 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005947/0.16, allocations: 215.4 kB / 0.5223 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004198/0.1604, allocations: 0.6963 MB / 0.523 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.753e-05/0.1605, allocations: 8.438 kB / 0.523 GB, free: 15.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.895e-05/0.1605, allocations: 11.44 kB / 0.523 GB, free: 15.94 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1605, allocations: 0 / 0.523 GB, free: 15.94 MB / 414.1 MB Notification: Performance of Templates: time 0.004667/0.1652, allocations: 0.991 MB / 0.524 GB, free: 14.96 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.3531819842755795]