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.001005/0.001005, allocations: 106.4 kB / 17.21 MB, free: 6.27 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.00101/0.00101, allocations: 194 kB / 18.12 MB, free: 5.363 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.4/1.4, allocations: 222.9 MB / 241.8 MB, free: 15.57 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.2227/0.2227, allocations: 44.17 MB / 336.1 MB, free: 3.02 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 67.64 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1418, allocations: 60.82 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003394/0.1452, allocations: 1.68 MB / 470.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009399/0.1462, allocations: 0.5416 MB / 470.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.1463, allocations: 4 kB / 470.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001558/0.1465, allocations: 7.922 kB / 470.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.61e-05/0.1465, allocations: 19.8 kB / 470.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004683/0.147, allocations: 75.92 kB / 470.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001746/0.1472, allocations: 103.7 kB / 470.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.1474, allocations: 27.98 kB / 471 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.89e-05/0.1474, allocations: 39.84 kB / 471 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001305/0.1476, allocations: 47.72 kB / 471.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.918e-05/0.1476, allocations: 4 kB / 471.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.8e-05/0.1476, allocations: 4 kB / 471.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.185e-05/0.1477, allocations: 27.89 kB / 471.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.366e-05/0.1478, allocations: 31.8 kB / 471.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001345/0.1479, allocations: 83.92 kB / 471.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1479, allocations: 0 / 471.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1479, allocations: 4 kB / 471.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.1479, allocations: 0 / 471.2 MB, free: 12.14 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.0007328/0.1487, allocations: 407.2 kB / 471.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.1487, allocations: 8.031 kB / 471.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.803e-05/0.1488, allocations: 12.84 kB / 471.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002546/0.149, allocations: 208 kB / 471.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.1491, allocations: 4.375 kB / 471.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.954e-05/0.1491, allocations: 12.38 kB / 471.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002862/0.1494, allocations: 105.9 kB / 472 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.1494, allocations: 4 kB / 472 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.514e-05/0.1494, allocations: 0 / 472 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.1494, allocations: 0 / 472 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001671/0.1496, allocations: 55.91 kB / 472 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007556/0.1504, allocations: 400.4 kB / 472.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003291/0.1507, allocations: 98.52 kB / 472.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.1508, allocations: 32.92 kB / 472.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.526e-05/0.1509, allocations: 3.938 kB / 472.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003416/0.1512, allocations: 99.36 kB / 472.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.1512, allocations: 3.938 kB / 472.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005752/0.1518, allocations: 145.5 kB / 472.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.169e-05/0.1519, allocations: 55.34 kB / 472.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001626/0.152, allocations: 149.8 kB / 473 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.1521, allocations: 37.64 kB / 473 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.974e-05/0.1521, allocations: 100 kB / 473.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.543e-05/0.1522, allocations: 11.81 kB / 473.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.756e-05/0.1522, allocations: 29.7 kB / 473.2 MB, free: 9.988 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002915/0.1525, allocations: 322.8 kB / 473.5 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.1527, allocations: 31.98 kB / 473.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.1528, allocations: 49.69 kB / 473.5 MB, free: 9.578 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.153, allocations: 81.61 kB / 473.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.153, allocations: 0 / 473.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002796/0.1533, allocations: 117.5 kB / 473.7 MB, free: 9.371 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.1533, allocations: 12.25 kB / 473.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.1533, allocations: 0 / 473.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.1534, allocations: 4 kB / 473.8 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.1535, allocations: 19.92 kB / 473.8 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.1535, allocations: 0 / 473.8 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.418e-05/0.1536, allocations: 23.97 kB / 473.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.718e-06/0.1536, allocations: 4 kB / 473.8 MB, free: 9.309 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,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.983e-05/0.1537, allocations: 121.8 kB / 473.9 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.161e-05/0.1537, allocations: 11.84 kB / 473.9 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.241e-05/0.1538, allocations: 20.7 kB / 474 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.1538, allocations: 0 / 474 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1538, allocations: 0 / 474 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.1538, allocations: 0 / 474 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005437/0.1544, allocations: 390.5 kB / 474.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1544, allocations: 0 / 474.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.056e-05/0.1545, allocations: 19.92 kB / 474.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1545, allocations: 0 / 474.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.1545, allocations: 0 / 474.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.1545, allocations: 0 / 474.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.1545, allocations: 4 kB / 474.4 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000531/0.1551, allocations: 255.2 kB / 474.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.56e-05/0.1551, allocations: 88.98 kB / 474.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.403e-05/0.1552, allocations: 4 kB / 474.7 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.1553, allocations: 24.03 kB / 474.7 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.942e-05/0.1554, allocations: 7.984 kB / 474.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/0.1554, allocations: 4 kB / 474.7 MB, free: 8.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.584e-05/0.1555, allocations: 112.6 kB / 474.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1555, allocations: 0 / 474.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002338/0.1557, allocations: 20 kB / 474.9 MB, free: 8.148 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001359/0.1559, allocations: 95.72 kB / 475 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002959/0.1562, allocations: 91.86 kB / 475 MB, free: 7.957 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1562, allocations: 0 / 475 MB, free: 7.957 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.1563, allocations: 43.92 kB / 475.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000358/0.1567, allocations: 19.98 kB / 475.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006544/0.1574, allocations: 249 kB / 475.4 MB, free: 7.621 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/0.1577, allocations: 0.6965 MB / 476 MB, free: 6.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.143e-05/0.1578, allocations: 12.55 kB / 476.1 MB, free: 6.887 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.106e-05/0.1579, allocations: 11.44 kB / 476.1 MB, free: 6.875 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1579, allocations: 0 / 476.1 MB, free: 6.875 MB / 350.1 MB Notification: Performance of Templates: time 0.00461/0.1625, allocations: 1.079 MB / 477.1 MB, free: 5.809 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches