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.001105/0.001105, allocations: 108.1 kB / 17.21 MB, free: 6.293 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.001051/0.001051, allocations: 194 kB / 18.12 MB, free: 5.383 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.505/1.505, allocations: 222.9 MB / 241.8 MB, free: 15.36 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.2192/0.2192, allocations: 44.18 MB / 336.1 MB, free: 2.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 73.62 kB / 407.7 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1496, allocations: 60.83 MB / 468.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003234/0.1529, allocations: 1.658 MB / 470.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007732/0.1537, allocations: 482.8 kB / 470.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.875e-05/0.1538, allocations: 0 / 470.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001344/0.1539, allocations: 11.92 kB / 470.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.466e-05/0.154, allocations: 11.92 kB / 470.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001785/0.1541, allocations: 35.92 kB / 470.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001301/0.1543, allocations: 71.77 kB / 470.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001236/0.1544, allocations: 32.2 kB / 470.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.307e-05/0.1545, allocations: 27.86 kB / 470.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.137e-05/0.1545, allocations: 23.86 kB / 470.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.386e-05/0.1546, allocations: 4 kB / 470.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.504e-05/0.1546, allocations: 11.94 kB / 470.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.46e-05/0.1546, allocations: 15.92 kB / 470.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.846e-05/0.1547, allocations: 31.8 kB / 470.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.1548, allocations: 68 kB / 471 MB, free: 12.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1548, allocations: 0 / 471 MB, free: 12.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1548, allocations: 0 / 471 MB, free: 12.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.897e-06/0.1548, allocations: 3.938 kB / 471 MB, free: 12.35 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.0005684/0.1554, allocations: 391.2 kB / 471.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.1554, allocations: 8.031 kB / 471.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.119e-05/0.1555, allocations: 12.84 kB / 471.4 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002094/0.1557, allocations: 196.2 kB / 471.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.1557, allocations: 12.31 kB / 471.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.422e-05/0.1558, allocations: 8.375 kB / 471.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000148/0.1559, allocations: 69.98 kB / 471.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.1559, allocations: 3.938 kB / 471.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.1559, allocations: 8 kB / 471.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.156, allocations: 0 / 471.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.125e-05/0.156, allocations: 35.92 kB / 471.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000577/0.1566, allocations: 356.5 kB / 472.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001071/0.1567, allocations: 42.56 kB / 472.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.471e-05/0.1568, allocations: 16.89 kB / 472.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.1568, allocations: 3.938 kB / 472.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001767/0.157, allocations: 71.44 kB / 472.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.157, allocations: 0 / 472.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002086/0.1572, allocations: 93.48 kB / 472.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.1573, allocations: 59.41 kB / 472.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.1574, allocations: 140.2 kB / 472.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.601e-05/0.1574, allocations: 29.64 kB / 472.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.464e-05/0.1575, allocations: 104.1 kB / 472.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.1575, allocations: 19.81 kB / 472.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.181e-05/0.1575, allocations: 29.7 kB / 472.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.1577, allocations: 318.8 kB / 473 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.8e-05/0.1577, allocations: 15.98 kB / 473 MB, free: 10.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.825e-05/0.1578, allocations: 38.56 kB / 473 MB, free: 10.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.796e-05/0.1578, allocations: 54.52 kB / 473.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1578, allocations: 4 kB / 473.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001317/0.158, allocations: 89.83 kB / 473.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.158, allocations: 8 kB / 473.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.158, allocations: 4.016 kB / 473.2 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.158, allocations: 3.938 kB / 473.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.636e-05/0.1581, allocations: 11.98 kB / 473.2 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.1581, allocations: 3.984 kB / 473.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.47e-05/0.1582, allocations: 7.969 kB / 473.2 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.874e-06/0.1582, allocations: 8 kB / 473.2 MB, free: 9.875 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,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 9.529e-05/0.1583, allocations: 121.7 kB / 473.3 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.989e-05/0.1583, allocations: 15.89 kB / 473.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.546e-05/0.1584, allocations: 16.66 kB / 473.4 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.1584, allocations: 0 / 473.4 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1584, allocations: 0 / 473.4 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.1584, allocations: 0 / 473.4 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003285/0.1587, allocations: 342.7 kB / 473.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1587, allocations: 4 kB / 473.7 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.992e-05/0.1588, allocations: 15.88 kB / 473.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.1588, allocations: 0 / 473.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.1588, allocations: 0 / 473.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.85e-06/0.1588, allocations: 7.984 kB / 473.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1588, allocations: 0 / 473.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002148/0.1591, allocations: 183.4 kB / 473.9 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.49e-05/0.1591, allocations: 89.03 kB / 474 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.1591, allocations: 4.062 kB / 474 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.815e-05/0.1592, allocations: 4 kB / 474 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.507e-05/0.1593, allocations: 11.98 kB / 474 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.1593, allocations: 0 / 474 MB, free: 8.977 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.305e-05/0.1594, allocations: 109.1 kB / 474.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1594, allocations: 0 / 474.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002295/0.1596, allocations: 15.91 kB / 474.1 MB, free: 8.855 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 (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.0001008/0.1597, allocations: 103.7 kB / 474.2 MB, free: 8.746 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001283/0.1599, allocations: 43.98 kB / 474.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1599, allocations: 0 / 474.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.368e-05/0.1599, allocations: 27.92 kB / 474.3 MB, free: 8.676 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003513/0.1603, allocations: 23.86 kB / 474.3 MB, free: 8.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005192/0.1608, allocations: 236.9 kB / 474.6 MB, free: 8.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002552/0.1611, allocations: 0.6965 MB / 475.3 MB, free: 7.668 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.86e-05/0.1611, allocations: 8.422 kB / 475.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.103e-05/0.1612, allocations: 11.44 kB / 475.3 MB, free: 7.648 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1612, allocations: 0 / 475.3 MB, free: 7.648 MB / 350.1 MB Notification: Performance of Templates: time 0.003164/0.1643, allocations: 0.8499 MB / 476.1 MB, free: 6.805 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