Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.0009535/0.0009535, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001003/0.001003, allocations: 169.8 kB / 25.61 MB, free: 8.902 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.8738/0.8738, allocations: 177.1 MB / 206 MB, free: 4.5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.1315/0.1315, allocations: 34.26 MB / 296.8 MB, free: 13.94 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 379.3 MB, free: 23.44 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.245e-05/1.353e-05, allocations: 2.312 kB / 379.3 MB, free: 23.44 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001569/0.001582, allocations: 1.647 MB / 380.9 MB, free: 21.78 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005259/0.002108, allocations: 0.4946 MB / 381.4 MB, free: 21.28 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.327e-05/0.002171, allocations: 4 kB / 381.4 MB, free: 21.27 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 9.773e-05/0.002269, allocations: 11.81 kB / 381.4 MB, free: 21.26 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 3.776e-05/0.002307, allocations: 19.84 kB / 381.4 MB, free: 21.24 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001291/0.002436, allocations: 35.84 kB / 381.5 MB, free: 21.21 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 9.111e-05/0.002527, allocations: 75.77 kB / 381.6 MB, free: 21.13 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.06e-05/0.002608, allocations: 20.22 kB / 381.6 MB, free: 21.11 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.96e-05/0.002657, allocations: 47.88 kB / 381.6 MB, free: 21.06 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.649e-05/0.002704, allocations: 15.92 kB / 381.6 MB, free: 21.05 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.553e-05/0.002719, allocations: 8 kB / 381.6 MB, free: 21.04 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.967e-06/0.002728, allocations: 12 kB / 381.7 MB, free: 21.03 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.938e-05/0.002748, allocations: 19.91 kB / 381.7 MB, free: 21.01 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 2.264e-05/0.00277, allocations: 23.92 kB / 381.7 MB, free: 20.98 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 8.728e-05/0.002858, allocations: 59.73 kB / 381.8 MB, free: 20.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.002859, allocations: 0 / 381.8 MB, free: 20.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.00286, allocations: 0 / 381.8 MB, free: 20.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.002863, allocations: 0 / 381.8 MB, free: 20.93 MB / 314.7 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.0002862/0.003149, allocations: 427.9 kB / 382.2 MB, free: 20.47 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.683e-05/0.003176, allocations: 8.031 kB / 382.2 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.732e-05/0.003204, allocations: 20.88 kB / 382.2 MB, free: 20.44 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.307e-05/0.003297, allocations: 136.5 kB / 382.3 MB, free: 20.28 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.003308, allocations: 8.312 kB / 382.3 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.657e-05/0.003325, allocations: 16.38 kB / 382.4 MB, free: 20.26 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.836e-05/0.003393, allocations: 78.02 kB / 382.4 MB, free: 20.18 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.64e-06/0.003399, allocations: 192 / 382.4 MB, free: 20.18 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-06/0.003405, allocations: 384 / 382.4 MB, free: 20.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.00341, allocations: 11.88 kB / 382.5 MB, free: 20.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.629e-05/0.003436, allocations: 15.98 kB / 382.5 MB, free: 20.15 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002504/0.003686, allocations: 308.1 kB / 382.8 MB, free: 19.82 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.105e-05/0.003737, allocations: 43.05 kB / 382.8 MB, free: 19.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.271e-05/0.00375, allocations: 19.66 kB / 382.8 MB, free: 19.74 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.683e-06/0.003757, allocations: 4 kB / 382.8 MB, free: 19.74 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.956e-05/0.003816, allocations: 65.08 kB / 382.9 MB, free: 19.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.003817, allocations: 0 / 382.9 MB, free: 19.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001096/0.003927, allocations: 77.61 kB / 383 MB, free: 19.58 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.973e-05/0.003947, allocations: 55.34 kB / 383 MB, free: 19.51 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.241e-05/0.003989, allocations: 185.8 kB / 383.2 MB, free: 19.31 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.073e-06/0.003996, allocations: 25.7 kB / 383.2 MB, free: 19.28 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.675e-05/0.004023, allocations: 151 kB / 383.4 MB, free: 19.13 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.57e-05/0.004039, allocations: 27.95 kB / 383.4 MB, free: 19.1 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.52e-05/0.004064, allocations: 27.38 kB / 383.4 MB, free: 19.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.437e-05/0.004098, allocations: 0.4922 MB / 383.9 MB, free: 18.56 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.045e-05/0.004109, allocations: 8 kB / 383.9 MB, free: 18.55 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.915e-05/0.004128, allocations: 39.03 kB / 384 MB, free: 18.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.398e-05/0.004162, allocations: 54.98 kB / 384 MB, free: 18.44 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.004164, allocations: 0 / 384 MB, free: 18.44 MB / 314.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 5.961e-05/0.004223, allocations: 73.56 kB / 384.1 MB, free: 18.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.004234, allocations: 10.25 kB / 384.1 MB, free: 18.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.004238, allocations: 4 kB / 384.1 MB, free: 18.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.063e-06/0.004245, allocations: 0 / 384.1 MB, free: 18.35 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.016e-05/0.004286, allocations: 8 kB / 384.1 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.174e-06/0.004288, allocations: 0 / 384.1 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.916e-05/0.004317, allocations: 11.98 kB / 384.1 MB, free: 18.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.548e-06/0.004321, allocations: 4 kB / 384.1 MB, free: 18.32 MB / 314.7 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 3.971e-05/0.004361, allocations: 166.3 kB / 384.3 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.252e-05/0.004374, allocations: 11.95 kB / 384.3 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.745e-05/0.004391, allocations: 8.438 kB / 384.3 MB, free: 18.13 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.004392, allocations: 7.938 kB / 384.3 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.004394, allocations: 0 / 384.3 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.004397, allocations: 4 kB / 384.3 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001425/0.004539, allocations: 309.9 kB / 384.6 MB, free: 17.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-07/0.00454, allocations: 0 / 384.6 MB, free: 17.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.469e-05/0.004564, allocations: 7.984 kB / 384.6 MB, free: 17.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.004566, allocations: 0 / 384.6 MB, free: 17.78 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.004572, allocations: 4 kB / 384.6 MB, free: 17.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.004573, allocations: 4 kB / 384.6 MB, free: 17.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.12e-07/0.004573, allocations: 0 / 384.6 MB, free: 17.77 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.483e-05/0.004658, allocations: 231.8 kB / 384.9 MB, free: 17.52 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.773e-06/0.004665, allocations: 3.938 kB / 384.9 MB, free: 17.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.038e-05/0.004675, allocations: 8 kB / 384.9 MB, free: 17.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.742e-05/0.004713, allocations: 3.984 kB / 384.9 MB, free: 17.51 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.563e-05/0.004738, allocations: 11.92 kB / 384.9 MB, free: 17.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-06/0.004742, allocations: 0 / 384.9 MB, free: 17.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.883e-05/0.004761, allocations: 135.2 kB / 385 MB, free: 17.36 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004761, allocations: 0 / 385 MB, free: 17.36 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001473/0.004908, allocations: 23.89 kB / 385.1 MB, free: 17.34 MB / 314.7 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 4.481e-05/0.004953, allocations: 91.25 kB / 385.1 MB, free: 17.24 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.274e-05/0.005016, allocations: 47.64 kB / 385.2 MB, free: 17.19 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.213e-06/0.005017, allocations: 0 / 385.2 MB, free: 17.19 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.466e-05/0.005041, allocations: 24.38 kB / 385.2 MB, free: 17.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001883/0.00523, allocations: 20.14 kB / 385.2 MB, free: 17.14 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002291/0.005459, allocations: 200 kB / 385.4 MB, free: 16.92 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.983e-05/0.005479, allocations: 63.34 kB / 385.5 MB, free: 16.84 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.32e-05/0.005502, allocations: 7.984 kB / 385.5 MB, free: 16.83 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.012e-05/0.005542, allocations: 78.2 kB / 385.6 MB, free: 16.75 MB / 314.7 MB Notification: Performance of SimCode: time 4.11e-07/0.005542, allocations: 4.125 kB / 385.6 MB, free: 16.75 MB / 314.7 MB Notification: Performance of Templates: time 0.002123/0.007665, allocations: 1.018 MB / 386.6 MB, free: 15.74 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.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.705294733867049]