Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001456/0.001455, allocations: 107.9 kB / 16.64 MB, free: 6.812 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.001383/0.001383, allocations: 186 kB / 17.56 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.054/2.054, allocations: 205.1 MB / 223.4 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2803/0.2803, allocations: 43.52 MB / 314.3 MB, free: 0.707 MB / 254.1 MB 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.00155/0.00155, allocations: 69.17 kB / 382.9 MB, free: 57.01 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1475, allocations: 57.79 MB / 440.7 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003232/0.1508, allocations: 1.675 MB / 442.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009644/0.1518, allocations: 0.5898 MB / 442.9 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.1519, allocations: 0 / 442.9 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.1521, allocations: 7.875 kB / 442.9 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.218e-05/0.1522, allocations: 19.92 kB / 442.9 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003407/0.1525, allocations: 75.41 kB / 443 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001443/0.1527, allocations: 115.7 kB / 443.1 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.1528, allocations: 31.91 kB / 443.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.833e-05/0.1529, allocations: 47.8 kB / 443.2 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.035e-05/0.153, allocations: 43.83 kB / 443.3 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.153, allocations: 8 kB / 443.3 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.611e-05/0.153, allocations: 8 kB / 443.3 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.647e-05/0.153, allocations: 19.92 kB / 443.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.05e-05/0.1531, allocations: 47.72 kB / 443.3 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001077/0.1532, allocations: 55.91 kB / 443.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1532, allocations: 0 / 443.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1532, allocations: 0 / 443.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.1532, allocations: 0 / 443.4 MB, free: 4.617 MB / 318.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.0005683/0.1538, allocations: 423 kB / 443.8 MB, free: 4.156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.1539, allocations: 15.89 kB / 443.8 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.066e-05/0.1539, allocations: 8.844 kB / 443.8 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001763/0.1541, allocations: 196.1 kB / 444 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.1541, allocations: 8.375 kB / 444 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.899e-05/0.1541, allocations: 12.31 kB / 444 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002467/0.1544, allocations: 106 kB / 444.1 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.1544, allocations: 3.984 kB / 444.1 MB, free: 3.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.1544, allocations: 3.984 kB / 444.1 MB, free: 3.766 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1544, allocations: 4 kB / 444.2 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001377/0.1546, allocations: 47.97 kB / 444.2 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005853/0.1552, allocations: 388.4 kB / 444.6 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003006/0.1555, allocations: 110.4 kB / 444.7 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.517e-05/0.1556, allocations: 32.92 kB / 444.7 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.304e-05/0.1556, allocations: 0 / 444.7 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003329/0.156, allocations: 103.4 kB / 444.8 MB, free: 3.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.156, allocations: 0 / 444.8 MB, free: 3.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004374/0.1564, allocations: 145.4 kB / 445 MB, free: 2.871 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.174e-05/0.1565, allocations: 55.34 kB / 445 MB, free: 2.805 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/0.1566, allocations: 154.7 kB / 445.2 MB, free: 2.645 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.1566, allocations: 25.7 kB / 445.2 MB, free: 2.613 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.452e-05/0.1567, allocations: 100.1 kB / 445.3 MB, free: 2.512 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.777e-05/0.1567, allocations: 27.78 kB / 445.3 MB, free: 2.484 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.204e-05/0.1567, allocations: 21.72 kB / 445.3 MB, free: 2.457 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.259e-05/0.1568, allocations: 318.8 kB / 445.7 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.1569, allocations: 43.97 kB / 445.7 MB, free: 2.094 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001026/0.1571, allocations: 49.69 kB / 445.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001747/0.1572, allocations: 73.62 kB / 445.8 MB, free: 1.961 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1572, allocations: 0 / 445.8 MB, free: 1.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002307/0.1575, allocations: 125.6 kB / 445.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.1575, allocations: 15.97 kB / 446 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1575, allocations: 0 / 446 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.1576, allocations: 0 / 446 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.1577, allocations: 15.98 kB / 446 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.1577, allocations: 0 / 446 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.05e-05/0.1578, allocations: 19.98 kB / 446 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.348e-06/0.1578, allocations: 0 / 446 MB, free: 1.781 MB / 318.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,change.u,$PRE.change.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 9.277e-05/0.1579, allocations: 130.8 kB / 446.1 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.935e-05/0.1579, allocations: 15.75 kB / 446.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.69e-05/0.158, allocations: 12.7 kB / 446.1 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.158, allocations: 4 kB / 446.1 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.158, allocations: 4 kB / 446.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.158, allocations: 0 / 446.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004434/0.1584, allocations: 398.4 kB / 446.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1584, allocations: 0 / 446.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.128e-05/0.1585, allocations: 11.98 kB / 446.6 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1585, allocations: 0 / 446.6 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.1586, allocations: 4 kB / 446.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1586, allocations: 0 / 446.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1586, allocations: 0 / 446.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003975/0.159, allocations: 243.7 kB / 446.8 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.664e-05/0.159, allocations: 92.97 kB / 446.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.039e-05/0.159, allocations: 0 / 446.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.1592, allocations: 24.05 kB / 446.9 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.882e-05/0.1593, allocations: 23.84 kB / 446.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.1593, allocations: 0 / 446.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.752e-05/0.1593, allocations: 116 kB / 447 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1593, allocations: 0 / 447 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002397/0.1596, allocations: 12 kB / 447.1 MB, free: 0.6094 MB / 318.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.916e-05/0.1597, allocations: 107.2 kB / 447.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002827/0.16, allocations: 91.91 kB / 447.2 MB, free: 416 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.16, allocations: 3.906 kB / 447.3 MB, free: 412 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.1601, allocations: 43.95 kB / 447.3 MB, free: 368 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.1605, allocations: 28.25 kB / 447.3 MB, free: 340 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005552/0.161, allocations: 269.2 kB / 447.6 MB, free: 40 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004411/0.1615, allocations: 0.704 MB / 448.3 MB, free: 15.31 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.445e-05/0.1615, allocations: 19.44 kB / 448.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1616, allocations: 0 / 448.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of Templates: time 0.003278/0.1648, allocations: 1.346 MB / 449.7 MB, free: 13.95 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches