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.001015/0.001015, 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.001008/0.001008, 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.933/0.933, allocations: 158.6 MB / 186 MB, free: 2.766 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.1391/0.1391, 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.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: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 299.1 MB, free: 2.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.206e-05/1.352e-05, allocations: 2.312 kB / 299.1 MB, free: 2.172 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002034/0.002047, allocations: 1.687 MB / 300.8 MB, free: 488 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1432/0.1452, allocations: 0.5054 MB / 301.3 MB, free: 19.25 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.1454, allocations: 4.406 kB / 301.3 MB, free: 19.25 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001267/0.1455, allocations: 11.33 kB / 301.3 MB, free: 19.25 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.473e-05/0.1456, allocations: 18.62 kB / 301.3 MB, free: 19.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001885/0.1458, allocations: 39.98 kB / 301.4 MB, free: 19.25 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000144/0.1459, allocations: 84.92 kB / 301.4 MB, free: 19.25 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.146, allocations: 25.53 kB / 301.5 MB, free: 19.25 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.269e-05/0.1461, allocations: 42.09 kB / 301.5 MB, free: 19.24 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.312e-05/0.1461, allocations: 22.41 kB / 301.5 MB, free: 19.24 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.897e-05/0.1462, allocations: 6.844 kB / 301.5 MB, free: 19.24 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.207e-05/0.1462, allocations: 6.469 kB / 301.5 MB, free: 19.24 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.139e-05/0.1462, allocations: 21.91 kB / 301.6 MB, free: 19.23 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.208e-05/0.1462, allocations: 24.75 kB / 301.6 MB, free: 19.23 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.1463, allocations: 53.56 kB / 301.6 MB, free: 19.22 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1463, allocations: 2.078 kB / 301.6 MB, free: 19.22 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1463, allocations: 0 / 301.6 MB, free: 19.22 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.897e-06/0.1463, allocations: 0 / 301.6 MB, free: 19.22 MB / 282.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.0003511/0.1467, allocations: 289.8 kB / 301.9 MB, free: 18.97 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.1467, allocations: 12.44 kB / 301.9 MB, free: 18.97 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.617e-05/0.1468, allocations: 14.64 kB / 302 MB, free: 18.97 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.1469, allocations: 130.5 kB / 302.1 MB, free: 18.84 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.1469, allocations: 8.156 kB / 302.1 MB, free: 18.84 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.962e-05/0.1469, allocations: 9.219 kB / 302.1 MB, free: 18.84 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.855e-05/0.147, allocations: 73.92 kB / 302.2 MB, free: 18.79 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.1471, allocations: 1.547 kB / 302.2 MB, free: 18.79 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.1471, allocations: 8.219 kB / 302.2 MB, free: 18.79 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.1471, allocations: 5.531 kB / 302.2 MB, free: 18.79 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.841e-05/0.1471, allocations: 15.91 kB / 302.2 MB, free: 18.79 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003163/0.1474, allocations: 219.2 kB / 302.4 MB, free: 18.63 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.409e-05/0.1475, allocations: 34.3 kB / 302.4 MB, free: 18.61 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.507e-05/0.1475, allocations: 10.39 kB / 302.5 MB, free: 18.6 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.194e-06/0.1475, allocations: 6.906 kB / 302.5 MB, free: 18.6 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.098e-05/0.1476, allocations: 64.44 kB / 302.5 MB, free: 18.55 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.1476, allocations: 1.125 kB / 302.5 MB, free: 18.55 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001167/0.1477, allocations: 60.27 kB / 302.6 MB, free: 18.52 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.404e-05/0.1477, allocations: 54.02 kB / 302.6 MB, free: 18.46 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.436e-05/0.1478, allocations: 126.5 kB / 302.8 MB, free: 18.35 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.1478, allocations: 27.45 kB / 302.8 MB, free: 18.32 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.811e-05/0.1478, allocations: 103.3 kB / 302.9 MB, free: 18.23 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.233e-05/0.1479, allocations: 19.97 kB / 302.9 MB, free: 18.22 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.821e-05/0.1479, allocations: 25.77 kB / 302.9 MB, free: 18.2 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.465e-05/0.1479, allocations: 328.1 kB / 303.3 MB, free: 17.89 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.527e-05/0.1479, allocations: 10.61 kB / 303.3 MB, free: 17.89 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.564e-05/0.148, allocations: 34.56 kB / 303.3 MB, free: 17.86 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.29e-05/0.148, allocations: 39.36 kB / 303.3 MB, free: 17.84 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.148, allocations: 0 / 303.3 MB, free: 17.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 8.085e-05/0.1481, allocations: 62.28 kB / 303.4 MB, free: 17.81 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.1481, allocations: 5 kB / 303.4 MB, free: 17.81 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1481, allocations: 3.344 kB / 303.4 MB, free: 17.81 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.1481, allocations: 1.75 kB / 303.4 MB, free: 17.81 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.385e-05/0.1482, allocations: 17.56 kB / 303.4 MB, free: 17.81 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.006e-06/0.1482, allocations: 1.562 kB / 303.4 MB, free: 17.81 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.441e-05/0.1482, allocations: 7.953 kB / 303.4 MB, free: 17.81 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.1482, allocations: 5.812 kB / 303.4 MB, free: 17.81 MB / 282.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,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$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 5.113e-05/0.1483, allocations: 118.9 kB / 303.6 MB, free: 17.69 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.216e-05/0.1483, allocations: 6.281 kB / 303.6 MB, free: 17.69 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.343e-05/0.1483, allocations: 10.95 kB / 303.6 MB, free: 17.69 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1483, allocations: 1.094 kB / 303.6 MB, free: 17.69 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-06/0.1483, allocations: 0 / 303.6 MB, free: 17.69 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.1483, allocations: 1.891 kB / 303.6 MB, free: 17.69 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.1485, allocations: 223.7 kB / 303.8 MB, free: 17.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.1485, allocations: 4.281 kB / 303.8 MB, free: 17.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.056e-05/0.1485, allocations: 4.406 kB / 303.8 MB, free: 17.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.1485, allocations: 8.297 kB / 303.8 MB, free: 17.5 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.1485, allocations: 1.172 kB / 303.8 MB, free: 17.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.1485, allocations: 2.312 kB / 303.8 MB, free: 17.5 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1485, allocations: 0 / 303.8 MB, free: 17.5 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001061/0.1486, allocations: 162.1 kB / 304 MB, free: 17.37 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.117e-05/0.1486, allocations: 14.08 kB / 304 MB, free: 17.36 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.1487, allocations: 1.922 kB / 304 MB, free: 17.36 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.064e-05/0.1487, allocations: 7.547 kB / 304 MB, free: 17.36 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.793e-05/0.1488, allocations: 11 kB / 304 MB, free: 17.36 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.982e-06/0.1488, allocations: 2.875 kB / 304 MB, free: 17.36 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.14e-05/0.1488, allocations: 19.34 kB / 304 MB, free: 17.35 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1488, allocations: 0 / 304 MB, free: 17.35 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001922/0.149, allocations: 16.72 kB / 304 MB, free: 17.35 MB / 282.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,booleanPulse.pulseStart,fallingEdge.not_u) * 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 6.591e-05/0.149, allocations: 74.44 kB / 304.1 MB, free: 17.28 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.495e-05/0.1491, allocations: 40.94 kB / 304.2 MB, free: 17.26 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.1491, allocations: 1.062 kB / 304.2 MB, free: 17.26 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.86e-05/0.1492, allocations: 28.88 kB / 304.2 MB, free: 17.25 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002064/0.1494, allocations: 18.02 kB / 304.2 MB, free: 17.25 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003593/0.1497, allocations: 204 kB / 304.4 MB, free: 17.1 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.502e-05/0.1498, allocations: 62.91 kB / 304.5 MB, free: 17.03 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.114e-05/0.1498, allocations: 5.594 kB / 304.5 MB, free: 17.03 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.454e-05/0.1499, allocations: 59.45 kB / 304.5 MB, free: 16.98 MB / 282.7 MB Notification: Performance of SimCode: time 4.91e-07/0.1499, allocations: 0 / 304.5 MB, free: 16.98 MB / 282.7 MB Notification: Performance of Templates: time 0.003043/0.1529, allocations: 0.9733 MB / 305.5 MB, free: 16.91 MB / 282.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 240] 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","",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.981084676925093]