Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008333/0.0008333, allocations: 99.34 kB / 17 MB, free: 6.074 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.0007867/0.0007868, allocations: 182.5 kB / 17.89 MB, free: 5.66 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.408/1.408, allocations: 223.3 MB / 241.9 MB, free: 14.59 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.2166/0.2166, allocations: 44.25 MB / 337.3 MB, free: 2.605 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000325/0.0003252, allocations: 8 kB / 409.7 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1572, allocations: 61.93 MB / 471.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.00242/0.1597, allocations: 1.216 MB / 472.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001079/0.1608, allocations: 467.2 kB / 473.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.623e-05/0.1609, allocations: 3.938 kB / 473.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.351e-05/0.1609, allocations: 0 / 473.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.1611, allocations: 15.86 kB / 473.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000309/0.1614, allocations: 27.97 kB / 473.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001853/0.1616, allocations: 75.77 kB / 473.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.1618, allocations: 15.92 kB / 473.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001715/0.1619, allocations: 39.83 kB / 473.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.1621, allocations: 35.84 kB / 473.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.654e-05/0.1621, allocations: 4 kB / 473.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.839e-05/0.1621, allocations: 4 kB / 473.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.05e-05/0.1622, allocations: 19.91 kB / 473.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.502e-05/0.1623, allocations: 37.7 kB / 473.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001311/0.1624, allocations: 48.19 kB / 473.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.087e-05/0.1624, allocations: 0 / 473.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.309e-06/0.1624, allocations: 0 / 473.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.1624, allocations: 0 / 473.6 MB, free: 11.65 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008782/0.1633, allocations: 395.1 kB / 474 MB, free: 11.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.1634, allocations: 8.031 kB / 474 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.545e-05/0.1634, allocations: 7.906 kB / 474 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001926/0.1636, allocations: 174.9 kB / 474.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.405e-05/0.1637, allocations: 11.98 kB / 474.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.37e-05/0.1637, allocations: 7.953 kB / 474.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002453/0.164, allocations: 89.64 kB / 474.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.164, allocations: 0 / 474.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.164, allocations: 7.938 kB / 474.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.164, allocations: 4 kB / 474.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001432/0.1642, allocations: 51.91 kB / 474.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006856/0.1649, allocations: 320.7 kB / 474.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/0.1651, allocations: 94.53 kB / 474.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.1652, allocations: 44.84 kB / 474.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.1653, allocations: 4 kB / 474.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003289/0.1656, allocations: 99.3 kB / 474.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.643e-06/0.1656, allocations: 4 kB / 474.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005333/0.1662, allocations: 193.3 kB / 475.1 MB, free: 9.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.358e-05/0.1663, allocations: 59.39 kB / 475.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.1664, allocations: 118 kB / 475.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.038e-05/0.1664, allocations: 29.7 kB / 475.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.1665, allocations: 96.41 kB / 475.4 MB, free: 9.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.2e-05/0.1666, allocations: 35.55 kB / 475.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.324e-05/0.1666, allocations: 8 kB / 475.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001849/0.1668, allocations: 322.8 kB / 475.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.87e-05/0.1669, allocations: 36.3 kB / 475.8 MB, free: 9.262 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001373/0.1671, allocations: 81.88 kB / 475.8 MB, free: 9.164 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001084/0.1672, allocations: 44 kB / 475.9 MB, free: 9.121 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1672, allocations: 4 kB / 475.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003119/0.1675, allocations: 165.6 kB / 476.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.1676, allocations: 10.34 kB / 476.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1676, allocations: 0 / 476.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.1676, allocations: 7.984 kB / 476.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.1677, allocations: 19.94 kB / 476.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.1677, allocations: 0 / 476.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.221e-05/0.1678, allocations: 19.92 kB / 476.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.1678, allocations: 4 kB / 476.1 MB, free: 8.891 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001833/0.168, allocations: 136.6 kB / 476.2 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.119e-05/0.1681, allocations: 11.89 kB / 476.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.732e-05/0.1681, allocations: 16.48 kB / 476.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.1681, allocations: 0 / 476.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.1682, allocations: 0 / 476.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.1682, allocations: 0 / 476.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006482/0.1688, allocations: 454.3 kB / 476.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1688, allocations: 0 / 476.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.404e-05/0.1689, allocations: 8 kB / 476.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.886e-06/0.1689, allocations: 7.984 kB / 476.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.1689, allocations: 7.938 kB / 476.7 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1689, allocations: 0 / 476.7 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1689, allocations: 0 / 476.7 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003891/0.1693, allocations: 255.4 kB / 477 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.1694, allocations: 88.95 kB / 477.1 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.918e-05/0.1695, allocations: 0 / 477.1 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.1696, allocations: 15.98 kB / 477.1 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.37e-05/0.1697, allocations: 11.92 kB / 477.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.321e-05/0.1697, allocations: 4 kB / 477.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.345e-05/0.1698, allocations: 95.58 kB / 477.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1698, allocations: 4 kB / 477.2 MB, free: 7.695 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002594/0.1701, allocations: 24 kB / 477.2 MB, free: 7.672 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001956/0.1703, allocations: 107.2 kB / 477.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003106/0.1706, allocations: 107.9 kB / 477.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1706, allocations: 3.938 kB / 477.4 MB, free: 7.449 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.1707, allocations: 52.3 kB / 477.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/0.1711, allocations: 15.94 kB / 477.5 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006046/0.1717, allocations: 225.4 kB / 477.7 MB, free: 7.133 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004351/0.1721, allocations: 0.7004 MB / 478.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.038e-05/0.1722, allocations: 8.875 kB / 478.4 MB, free: 6.398 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.574e-05/0.1722, allocations: 19.38 kB / 478.5 MB, free: 6.379 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1723, allocations: 0 / 478.5 MB, free: 6.379 MB / 350.1 MB Notification: Performance of Templates: time 0.003828/0.1761, allocations: 0.8697 MB / 479.3 MB, free: 5.516 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches