Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 99.83 kB / 17.01 MB, free: 6.105 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.001318/0.001319, allocations: 179 kB / 17.89 MB, free: 5.688 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.51/1.51, allocations: 223.3 MB / 241.9 MB, free: 300 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2743/0.2743, allocations: 44.25 MB / 337.3 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003475/0.0003476, allocations: 12.22 kB / 409.7 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.142, allocations: 61.93 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002217/0.1443, allocations: 1.299 MB / 472.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000964/0.1453, allocations: 451.2 kB / 473.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.1454, allocations: 11.94 kB / 473.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001227/0.1455, allocations: 7.922 kB / 473.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.167e-05/0.1456, allocations: 7.938 kB / 473.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002357/0.1459, allocations: 27.95 kB / 473.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001513/0.146, allocations: 71.78 kB / 473.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.1462, allocations: 28.14 kB / 473.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.368e-05/0.1462, allocations: 27.86 kB / 473.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.418e-05/0.1463, allocations: 23.86 kB / 473.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.1464, allocations: 0 / 473.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.509e-05/0.1464, allocations: 4 kB / 473.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.528e-05/0.1464, allocations: 15.91 kB / 473.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.097e-05/0.1465, allocations: 41.64 kB / 473.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.634e-05/0.1466, allocations: 44.14 kB / 473.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1466, allocations: 0 / 473.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.596e-06/0.1466, allocations: 3.984 kB / 473.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1466, allocations: 0 / 473.6 MB, free: 11.63 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006472/0.1473, allocations: 375.1 kB / 474 MB, free: 11.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.1473, allocations: 8.031 kB / 474 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.169e-05/0.1474, allocations: 11.91 kB / 474 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002426/0.1476, allocations: 194.9 kB / 474.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.1477, allocations: 0 / 474.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.967e-05/0.1477, allocations: 19.89 kB / 474.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001647/0.1479, allocations: 69.67 kB / 474.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.1479, allocations: 0 / 474.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.1479, allocations: 7.938 kB / 474.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.1479, allocations: 8 kB / 474.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.57e-05/0.148, allocations: 35.98 kB / 474.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006841/0.1487, allocations: 360.5 kB / 474.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001141/0.1488, allocations: 42.56 kB / 474.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.806e-05/0.1489, allocations: 16.89 kB / 474.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/0.1489, allocations: 0 / 474.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002083/0.1491, allocations: 71.38 kB / 474.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.1491, allocations: 0 / 474.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002529/0.1494, allocations: 93.56 kB / 474.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.1494, allocations: 55.36 kB / 475 MB, free: 10.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.1496, allocations: 140.5 kB / 475.1 MB, free: 9.961 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.1496, allocations: 29.7 kB / 475.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.096e-05/0.1497, allocations: 100 kB / 475.2 MB, free: 9.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.974e-05/0.1497, allocations: 19.89 kB / 475.3 MB, free: 9.805 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.578e-06/0.1497, allocations: 3.938 kB / 475.3 MB, free: 9.801 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.1499, allocations: 322.8 kB / 475.6 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.041e-05/0.1499, allocations: 12 kB / 475.6 MB, free: 9.465 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.11e-05/0.15, allocations: 50.5 kB / 475.6 MB, free: 9.406 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.419e-05/0.1501, allocations: 12 kB / 475.7 MB, free: 9.395 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1501, allocations: 0 / 475.7 MB, free: 9.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001594/0.1502, allocations: 89.52 kB / 475.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.1503, allocations: 11.98 kB / 475.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.1503, allocations: 0 / 475.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.1503, allocations: 4.062 kB / 475.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.036e-05/0.1504, allocations: 11.94 kB / 475.8 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.1504, allocations: 4.344 kB / 475.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.64e-05/0.1505, allocations: 15.89 kB / 475.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.1505, allocations: 8 kB / 475.8 MB, free: 9.246 MB / 350.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,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.fallingEdge.not_u,fallingEdge.not_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.0001151/0.1506, allocations: 116.8 kB / 475.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.083e-05/0.1506, allocations: 7.906 kB / 475.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.605e-05/0.1507, allocations: 12.7 kB / 475.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1507, allocations: 8 kB / 475.9 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.1507, allocations: 0 / 475.9 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1507, allocations: 3.953 kB / 475.9 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003801/0.1511, allocations: 354.4 kB / 476.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1511, allocations: 0 / 476.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.287e-05/0.1512, allocations: 7.984 kB / 476.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.1512, allocations: 4 kB / 476.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.1512, allocations: 0 / 476.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.1512, allocations: 3.953 kB / 476.3 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1512, allocations: 4 kB / 476.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002439/0.1515, allocations: 187.4 kB / 476.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.473e-05/0.1515, allocations: 85.05 kB / 476.6 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.2e-05/0.1516, allocations: 4 kB / 476.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.208e-05/0.1517, allocations: 11.98 kB / 476.6 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.628e-05/0.1517, allocations: 11.94 kB / 476.6 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.1517, allocations: 0 / 476.6 MB, free: 8.344 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.543e-05/0.1518, allocations: 109.2 kB / 476.7 MB, free: 8.238 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1518, allocations: 0 / 476.7 MB, free: 8.238 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002479/0.1521, allocations: 19.91 kB / 476.7 MB, free: 8.219 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,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 (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.0001112/0.1522, allocations: 95.23 kB / 476.8 MB, free: 8.117 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001422/0.1523, allocations: 47.92 kB / 476.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1524, allocations: 0 / 476.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.393e-05/0.1524, allocations: 20 kB / 476.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003425/0.1528, allocations: 20.11 kB / 476.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006462/0.1534, allocations: 245.5 kB / 477.1 MB, free: 7.762 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.1538, allocations: 0.7004 MB / 477.8 MB, free: 7.035 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.502e-05/0.1538, allocations: 8.375 kB / 477.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.462e-05/0.1539, allocations: 11.44 kB / 477.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1539, allocations: 3.938 kB / 477.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of Templates: time 0.003697/0.1576, allocations: 0.8052 MB / 478.7 MB, free: 6.207 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches