Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 96.92 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002162/0.002162, allocations: 183.4 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 223.2 MB / 241.8 MB, free: 14.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3395/0.3395, allocations: 44.22 MB / 337.1 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003709/0.0003712, allocations: 12 kB / 409.5 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.1513, allocations: 61.92 MB / 471.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002223/0.1536, allocations: 1.303 MB / 472.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000944/0.1546, allocations: 0.5147 MB / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.775e-05/0.1547, allocations: 0 / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.1e-05/0.1547, allocations: 3.938 kB / 473.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001093/0.1548, allocations: 15.97 kB / 473.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003426/0.1552, allocations: 71.78 kB / 473.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001671/0.1554, allocations: 63.86 kB / 473.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001333/0.1555, allocations: 27.97 kB / 473.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.732e-05/0.1556, allocations: 43.78 kB / 473.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.693e-05/0.1557, allocations: 31.84 kB / 473.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.064e-05/0.1557, allocations: 4 kB / 473.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.553e-05/0.1557, allocations: 4 kB / 473.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.517e-05/0.1558, allocations: 15.91 kB / 473.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.525e-05/0.1558, allocations: 41.64 kB / 473.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.527e-05/0.1559, allocations: 48.12 kB / 473.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1559, allocations: 4 kB / 473.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1559, allocations: 0 / 473.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.156, allocations: 0 / 473.6 MB, free: 11.53 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006943/0.1567, allocations: 403.1 kB / 474 MB, free: 11.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.1567, allocations: 12.03 kB / 474 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.562e-05/0.1568, allocations: 15.81 kB / 474.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002487/0.157, allocations: 190.9 kB / 474.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.219e-05/0.1571, allocations: 7.938 kB / 474.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.701e-05/0.1571, allocations: 15.95 kB / 474.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002962/0.1574, allocations: 117.5 kB / 474.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.1574, allocations: 4 kB / 474.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.1574, allocations: 0 / 474.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.1575, allocations: 4 kB / 474.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001612/0.1576, allocations: 51.97 kB / 474.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007622/0.1584, allocations: 412.5 kB / 474.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003493/0.1588, allocations: 110.5 kB / 474.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.457e-05/0.1588, allocations: 0 / 474.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003233/0.1591, allocations: 111.4 kB / 475.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.1591, allocations: 0 / 475.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004929/0.1596, allocations: 153.5 kB / 475.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/0.1597, allocations: 55.41 kB / 475.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/0.1598, allocations: 156.3 kB / 475.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.1598, allocations: 25.7 kB / 475.4 MB, free: 9.527 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.923e-05/0.1599, allocations: 100.2 kB / 475.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/0.1599, allocations: 23.78 kB / 475.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.03e-06/0.16, allocations: 0 / 475.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1601, allocations: 326.8 kB / 475.9 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.1602, allocations: 39.92 kB / 475.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001321/0.1604, allocations: 57.69 kB / 476 MB, free: 8.973 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/0.1605, allocations: 36.11 kB / 476 MB, free: 8.938 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1605, allocations: 0 / 476 MB, free: 8.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003051/0.1608, allocations: 129.5 kB / 476.1 MB, free: 8.805 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.1608, allocations: 8 kB / 476.1 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1609, allocations: 0 / 476.1 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.1609, allocations: 0 / 476.1 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.161, allocations: 19.92 kB / 476.2 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.161, allocations: 4.031 kB / 476.2 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.1611, allocations: 39.92 kB / 476.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.1611, allocations: 4 kB / 476.2 MB, free: 8.73 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001001/0.1612, allocations: 114.4 kB / 476.3 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.021e-05/0.1613, allocations: 7.906 kB / 476.3 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.864e-05/0.1613, allocations: 24.64 kB / 476.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-06/0.1613, allocations: 4 kB / 476.4 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.1613, allocations: 0 / 476.4 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1614, allocations: 0 / 476.4 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006418/0.162, allocations: 402.4 kB / 476.7 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.162, allocations: 0 / 476.7 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.755e-05/0.1621, allocations: 15.98 kB / 476.8 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.1621, allocations: 0 / 476.8 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/0.1621, allocations: 0 / 476.8 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.1622, allocations: 0 / 476.8 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.1622, allocations: 3.953 kB / 476.8 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00055/0.1627, allocations: 267.7 kB / 477 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.437e-05/0.1628, allocations: 85 kB / 477.1 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.429e-05/0.1628, allocations: 4.031 kB / 477.1 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001583/0.163, allocations: 23.98 kB / 477.1 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.006e-05/0.1631, allocations: 11.97 kB / 477.2 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.1631, allocations: 7.953 kB / 477.2 MB, free: 7.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.769e-05/0.1632, allocations: 112.8 kB / 477.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1632, allocations: 4 kB / 477.3 MB, free: 7.566 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002397/0.1634, allocations: 19.91 kB / 477.3 MB, free: 7.547 MB / 350.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,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.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 (linear and non-linear blocks): 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.1635, allocations: 95.34 kB / 477.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003301/0.1639, allocations: 95.83 kB / 477.5 MB, free: 7.352 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1639, allocations: 0 / 477.5 MB, free: 7.352 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001457/0.164, allocations: 47.97 kB / 477.5 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.1643, allocations: 22.33 kB / 477.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005777/0.1649, allocations: 245.2 kB / 477.8 MB, free: 7.016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.1653, allocations: 0.7082 MB / 478.5 MB, free: 6.281 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.077e-05/0.1654, allocations: 8.547 kB / 478.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.088e-05/0.1654, allocations: 19.44 kB / 478.5 MB, free: 6.254 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1654, allocations: 0 / 478.5 MB, free: 6.254 MB / 350.1 MB Notification: Performance of Templates: time 0.0038/0.1692, allocations: 1.015 MB / 479.5 MB, free: 5.246 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches