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.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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006803/0.006803, allocations: 101 kB / 15.87 MB, free: 6.309 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.001281/0.001281, allocations: 193.6 kB / 16.79 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.504/1.504, allocations: 205.1 MB / 222.6 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4437/0.4437, allocations: 43.49 MB / 313.5 MB, free: 8.25 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.001499/0.001499, allocations: 70.89 kB / 382 MB, free: 8.508 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1438, allocations: 57.8 MB / 439.8 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003164/0.147, allocations: 1.657 MB / 441.5 MB, free: 12.94 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009204/0.148, allocations: 0.5152 MB / 442 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.081e-05/0.1481, allocations: 0 / 442 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001279/0.1482, allocations: 7.922 kB / 442 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.969e-05/0.1483, allocations: 7.938 kB / 442 MB, free: 12.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001885/0.1485, allocations: 43.89 kB / 442.1 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001249/0.1486, allocations: 71.78 kB / 442.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.1488, allocations: 36.47 kB / 442.2 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.581e-05/0.1488, allocations: 23.86 kB / 442.2 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.293e-05/0.1489, allocations: 35.78 kB / 442.2 MB, free: 12.19 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.126e-05/0.1489, allocations: 8 kB / 442.2 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.492e-05/0.149, allocations: 4 kB / 442.2 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.684e-05/0.149, allocations: 15.92 kB / 442.2 MB, free: 12.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.643e-05/0.1491, allocations: 31.8 kB / 442.3 MB, free: 12.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001309/0.1492, allocations: 71.72 kB / 442.3 MB, free: 12.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1492, allocations: 0 / 442.3 MB, free: 12.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1492, allocations: 0 / 442.3 MB, free: 12.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.862e-06/0.1492, allocations: 0 / 442.3 MB, free: 12.06 MB / 382.1 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.000638/0.1499, allocations: 387.2 kB / 442.7 MB, free: 11.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.1499, allocations: 16.03 kB / 442.7 MB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.713e-05/0.15, allocations: 8.844 kB / 442.7 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.1502, allocations: 192.1 kB / 442.9 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.1502, allocations: 8.375 kB / 442.9 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.021e-05/0.1502, allocations: 16.31 kB / 443 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001561/0.1504, allocations: 73.92 kB / 443 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.1504, allocations: 4 kB / 443 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.1504, allocations: 4 kB / 443 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.1504, allocations: 4 kB / 443 MB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.202e-05/0.1505, allocations: 35.98 kB / 443.1 MB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005768/0.1511, allocations: 356.6 kB / 443.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.1512, allocations: 46.56 kB / 443.5 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.868e-05/0.1513, allocations: 20.83 kB / 443.5 MB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.261e-05/0.1513, allocations: 4 kB / 443.5 MB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002043/0.1515, allocations: 63.44 kB / 443.6 MB, free: 10.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.153e-06/0.1515, allocations: 0 / 443.6 MB, free: 10.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002387/0.1518, allocations: 89.52 kB / 443.6 MB, free: 10.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.748e-05/0.1518, allocations: 55.34 kB / 443.7 MB, free: 10.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.152, allocations: 141.7 kB / 443.8 MB, free: 10.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.152, allocations: 29.7 kB / 443.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.173e-05/0.1521, allocations: 104.1 kB / 444 MB, free: 10.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.387e-05/0.1521, allocations: 15.72 kB / 444 MB, free: 10.22 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.517e-05/0.1521, allocations: 29.7 kB / 444 MB, free: 10.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1523, allocations: 318.8 kB / 444.3 MB, free: 9.863 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.063e-05/0.1523, allocations: 15.98 kB / 444.3 MB, free: 9.848 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.914e-05/0.1524, allocations: 38.56 kB / 444.4 MB, free: 9.801 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.4e-05/0.1525, allocations: 50.52 kB / 444.4 MB, free: 9.742 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1525, allocations: 4 kB / 444.4 MB, free: 9.738 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001322/0.1526, allocations: 81.53 kB / 444.5 MB, free: 9.652 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.1526, allocations: 4 kB / 444.5 MB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.1526, allocations: 4 kB / 444.5 MB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.1527, allocations: 7.875 kB / 444.5 MB, free: 9.637 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.697e-05/0.1527, allocations: 15.98 kB / 444.5 MB, free: 9.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.1528, allocations: 4.062 kB / 444.5 MB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.409e-05/0.1528, allocations: 7.938 kB / 444.6 MB, free: 9.609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.225e-06/0.1528, allocations: 4 kB / 444.6 MB, free: 9.605 MB / 382.1 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 8.618e-05/0.1529, allocations: 117.8 kB / 444.7 MB, free: 9.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.752e-05/0.153, allocations: 11.89 kB / 444.7 MB, free: 9.469 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.788e-05/0.153, allocations: 16.66 kB / 444.7 MB, free: 9.457 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.153, allocations: 4 kB / 444.7 MB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.153, allocations: 192 / 444.7 MB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.153, allocations: 0 / 444.7 MB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003541/0.1534, allocations: 358.3 kB / 445.1 MB, free: 9.047 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1534, allocations: 0 / 445.1 MB, free: 9.047 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.045e-05/0.1535, allocations: 7.938 kB / 445.1 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.1535, allocations: 0 / 445.1 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.1535, allocations: 7.984 kB / 445.1 MB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1535, allocations: 0 / 445.1 MB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.1535, allocations: 0 / 445.1 MB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002221/0.1537, allocations: 199.8 kB / 445.3 MB, free: 8.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.713e-05/0.1538, allocations: 85 kB / 445.3 MB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.055e-05/0.1538, allocations: 8.031 kB / 445.4 MB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.391e-05/0.1539, allocations: 0 / 445.4 MB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.09e-05/0.154, allocations: 11.98 kB / 445.4 MB, free: 8.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.263e-06/0.154, allocations: 4 kB / 445.4 MB, free: 8.695 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.22e-05/0.1541, allocations: 110.7 kB / 445.5 MB, free: 8.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.413e-06/0.1541, allocations: 0 / 445.5 MB, free: 8.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000226/0.1543, allocations: 15.94 kB / 445.5 MB, free: 8.574 MB / 382.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,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 0.0001452/0.1545, allocations: 107.2 kB / 445.6 MB, free: 8.457 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00014/0.1546, allocations: 39.98 kB / 445.6 MB, free: 8.418 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.1546, allocations: 0 / 445.6 MB, free: 8.418 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.727e-05/0.1547, allocations: 31.92 kB / 445.7 MB, free: 8.387 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003127/0.155, allocations: 19.92 kB / 445.7 MB, free: 8.367 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000567/0.1556, allocations: 245 kB / 445.9 MB, free: 8.102 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002787/0.1559, allocations: 0.6926 MB / 446.6 MB, free: 7.383 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.87e-05/0.1559, allocations: 8.422 kB / 446.6 MB, free: 7.375 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.414e-05/0.156, allocations: 19.44 kB / 446.6 MB, free: 7.355 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.156, allocations: 0 / 446.6 MB, free: 7.355 MB / 382.1 MB Notification: Performance of Templates: time 0.003368/0.1593, allocations: 0.8404 MB / 447.5 MB, free: 6.52 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) 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","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches