Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001158/0.001158, allocations: 178.2 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.766/1.766, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007384/0.0007384, allocations: 87.83 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4564/0.4564, allocations: 43.56 MB / 362.7 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003764/0.0003765, allocations: 12 kB / 431.4 MB, free: 5.926 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.129, allocations: 58.85 MB / 490.2 MB, free: 10.99 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001877/0.131, allocations: 1.306 MB / 491.5 MB, free: 9.676 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008891/0.1319, allocations: 0.5622 MB / 492.1 MB, free: 9.105 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.475e-05/0.132, allocations: 4 kB / 492.1 MB, free: 9.102 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001033/0.1321, allocations: 7.922 kB / 492.1 MB, free: 9.094 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.503e-05/0.1321, allocations: 11.88 kB / 492.1 MB, free: 9.082 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003297/0.1325, allocations: 79.89 kB / 492.2 MB, free: 9.004 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001538/0.1326, allocations: 99.69 kB / 492.3 MB, free: 8.906 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.1328, allocations: 27.97 kB / 492.3 MB, free: 8.879 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.785e-05/0.1328, allocations: 43.83 kB / 492.4 MB, free: 8.836 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.418e-05/0.1329, allocations: 31.84 kB / 492.4 MB, free: 8.805 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.1329, allocations: 4 kB / 492.4 MB, free: 8.801 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.219e-05/0.133, allocations: 0 / 492.4 MB, free: 8.801 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.933e-05/0.133, allocations: 15.92 kB / 492.4 MB, free: 8.785 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.099e-05/0.133, allocations: 37.7 kB / 492.5 MB, free: 8.742 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 8.63e-05/0.1331, allocations: 56.05 kB / 492.5 MB, free: 8.688 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1331, allocations: 4 kB / 492.5 MB, free: 8.684 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.275e-06/0.1332, allocations: 0 / 492.5 MB, free: 8.684 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.1332, allocations: 0 / 492.5 MB, free: 8.684 MB / 378.7 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.0006574/0.1338, allocations: 399 kB / 492.9 MB, free: 8.246 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.1339, allocations: 12.03 kB / 492.9 MB, free: 8.234 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.704e-05/0.1339, allocations: 15.86 kB / 492.9 MB, free: 8.219 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.1341, allocations: 198.5 kB / 493.1 MB, free: 7.988 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.1342, allocations: 4 kB / 493.1 MB, free: 7.984 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.075e-05/0.1342, allocations: 12 kB / 493.1 MB, free: 7.973 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002853/0.1345, allocations: 121.4 kB / 493.3 MB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.1345, allocations: 0 / 493.3 MB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.1345, allocations: 0 / 493.3 MB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.1345, allocations: 4 kB / 493.3 MB, free: 7.844 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001731/0.1347, allocations: 55.92 kB / 493.3 MB, free: 7.789 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007134/0.1354, allocations: 420.4 kB / 493.7 MB, free: 7.328 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003306/0.1358, allocations: 110.5 kB / 493.8 MB, free: 7.211 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.1359, allocations: 40.86 kB / 493.9 MB, free: 7.168 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-06/0.1359, allocations: 0 / 493.9 MB, free: 7.168 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002954/0.1362, allocations: 111.3 kB / 494 MB, free: 7.047 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.1362, allocations: 0 / 494 MB, free: 7.047 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004455/0.1367, allocations: 153.5 kB / 494.1 MB, free: 6.891 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.1367, allocations: 55.41 kB / 494.2 MB, free: 6.824 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.1369, allocations: 150.3 kB / 494.3 MB, free: 6.668 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.1369, allocations: 33.7 kB / 494.4 MB, free: 6.629 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.323e-05/0.137, allocations: 100.2 kB / 494.5 MB, free: 6.527 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.243e-05/0.137, allocations: 15.81 kB / 494.5 MB, free: 6.512 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-06/0.137, allocations: 0 / 494.5 MB, free: 6.512 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.1371, allocations: 326.8 kB / 494.8 MB, free: 6.184 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.1372, allocations: 35.97 kB / 494.8 MB, free: 6.148 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.1374, allocations: 57.64 kB / 494.9 MB, free: 6.086 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001219/0.1375, allocations: 43.92 kB / 494.9 MB, free: 6.043 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1375, allocations: 0 / 494.9 MB, free: 6.043 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002842/0.1378, allocations: 129.4 kB / 495.1 MB, free: 5.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.1378, allocations: 4 kB / 495.1 MB, free: 5.906 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.1379, allocations: 8.031 kB / 495.1 MB, free: 5.898 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.1379, allocations: 0 / 495.1 MB, free: 5.898 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.138, allocations: 15.98 kB / 495.1 MB, free: 5.883 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.138, allocations: 7.938 kB / 495.1 MB, free: 5.875 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.335e-05/0.1381, allocations: 20.06 kB / 495.1 MB, free: 5.855 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.106e-06/0.1381, allocations: 4 kB / 495.1 MB, free: 5.852 MB / 378.7 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 8.936e-05/0.1382, allocations: 130.1 kB / 495.2 MB, free: 5.715 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.528e-05/0.1382, allocations: 7.906 kB / 495.3 MB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.915e-05/0.1383, allocations: 16.7 kB / 495.3 MB, free: 5.695 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.1383, allocations: 7.875 kB / 495.3 MB, free: 5.688 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1383, allocations: 4 kB / 495.3 MB, free: 5.684 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1383, allocations: 0 / 495.3 MB, free: 5.684 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004872/0.1388, allocations: 406.3 kB / 495.7 MB, free: 5.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1388, allocations: 3.984 kB / 495.7 MB, free: 5.227 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.357e-05/0.1389, allocations: 12 kB / 495.7 MB, free: 5.215 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1389, allocations: 0 / 495.7 MB, free: 5.215 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.1389, allocations: 8 kB / 495.7 MB, free: 5.207 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.1389, allocations: 3.984 kB / 495.7 MB, free: 5.203 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1389, allocations: 0 / 495.7 MB, free: 5.203 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004432/0.1394, allocations: 255.7 kB / 496 MB, free: 4.938 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.417e-05/0.1394, allocations: 92.98 kB / 496 MB, free: 4.828 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.1395, allocations: 0 / 496 MB, free: 4.828 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.1396, allocations: 36.02 kB / 496.1 MB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.412e-05/0.1397, allocations: 11.98 kB / 496.1 MB, free: 4.781 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.778e-06/0.1397, allocations: 7.984 kB / 496.1 MB, free: 4.773 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.22e-05/0.1398, allocations: 103.8 kB / 496.2 MB, free: 4.672 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1398, allocations: 0 / 496.2 MB, free: 4.672 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002041/0.14, allocations: 20 kB / 496.2 MB, free: 4.652 MB / 378.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,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 9.873e-05/0.1401, allocations: 91.25 kB / 496.3 MB, free: 4.551 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002889/0.1404, allocations: 103.9 kB / 496.4 MB, free: 4.449 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1404, allocations: 0 / 496.4 MB, free: 4.449 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001341/0.1405, allocations: 44.05 kB / 496.5 MB, free: 4.406 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/0.1408, allocations: 31.16 kB / 496.5 MB, free: 4.379 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005042/0.1413, allocations: 274.6 kB / 496.8 MB, free: 4.078 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002568/0.1416, allocations: 0.7003 MB / 497.5 MB, free: 3.352 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.306e-05/0.1417, allocations: 19.38 kB / 497.5 MB, free: 3.332 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.1417, allocations: 0 / 497.5 MB, free: 3.332 MB / 378.7 MB Notification: Performance of Templates: time 0.002549/0.1442, allocations: 1.31 MB / 498.8 MB, free: 2.02 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches