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.0009764/0.0009762, allocations: 95.64 kB / 16.98 MB, free: 5.938 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.0009399/0.0009401, allocations: 186.9 kB / 17.88 MB, free: 5.594 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.373/1.373, allocations: 223.2 MB / 241.8 MB, free: 14.64 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.2326/0.2326, allocations: 44.22 MB / 337.1 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004192/0.0004194, allocations: 8 kB / 409.5 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1589, allocations: 61.93 MB / 471.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001724/0.1607, allocations: 1.217 MB / 472.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008337/0.1615, allocations: 455.3 kB / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.51e-05/0.1616, allocations: 3.938 kB / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.805e-05/0.1616, allocations: 4 kB / 473.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.632e-05/0.1617, allocations: 19.89 kB / 473.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001931/0.1619, allocations: 27.98 kB / 473.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.291e-05/0.162, allocations: 51.86 kB / 473.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.1621, allocations: 15.98 kB / 473.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.1622, allocations: 35.84 kB / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.241e-05/0.1623, allocations: 31.84 kB / 473.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.622e-05/0.1624, allocations: 4 kB / 473.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.837e-05/0.1624, allocations: 7.938 kB / 473.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.896e-05/0.1624, allocations: 19.97 kB / 473.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.156e-05/0.1625, allocations: 41.61 kB / 473.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.604e-05/0.1626, allocations: 48.2 kB / 473.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1626, allocations: 0 / 473.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1626, allocations: 0 / 473.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.1626, allocations: 4 kB / 473.4 MB, free: 11.75 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.0006815/0.1633, allocations: 391 kB / 473.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.1633, allocations: 12.03 kB / 473.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.251e-05/0.1634, allocations: 7.906 kB / 473.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.1636, allocations: 178.9 kB / 474 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.1636, allocations: 4 kB / 474 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.404e-05/0.1636, allocations: 7.953 kB / 474 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/0.1638, allocations: 85.64 kB / 474.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.1638, allocations: 0 / 474.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.1639, allocations: 4 kB / 474.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.1639, allocations: 8 kB / 474.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001259/0.164, allocations: 43.97 kB / 474.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006481/0.1647, allocations: 328.6 kB / 474.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001831/0.1649, allocations: 94.55 kB / 474.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.1649, allocations: 4 kB / 474.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002219/0.1651, allocations: 103.5 kB / 474.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.763e-06/0.1651, allocations: 0 / 474.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.000445/0.1656, allocations: 197.7 kB / 474.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.1656, allocations: 55.41 kB / 474.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.195e-05/0.1657, allocations: 118 kB / 475 MB, free: 9.953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.27e-05/0.1658, allocations: 33.69 kB / 475.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.139e-05/0.1658, allocations: 88.42 kB / 475.1 MB, free: 9.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.822e-05/0.1659, allocations: 35.92 kB / 475.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.806e-06/0.1659, allocations: 4 kB / 475.2 MB, free: 9.781 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.166, allocations: 322.8 kB / 475.5 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.791e-05/0.1661, allocations: 36.36 kB / 475.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.1662, allocations: 85.75 kB / 475.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.523e-05/0.1663, allocations: 47.95 kB / 475.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.1663, allocations: 4 kB / 475.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002935/0.1666, allocations: 157.3 kB / 475.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.1667, allocations: 15.92 kB / 475.8 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1667, allocations: 4.156 kB / 475.8 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.1667, allocations: 4 kB / 475.8 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.1668, allocations: 23.92 kB / 475.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.1668, allocations: 0 / 475.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.186e-05/0.1669, allocations: 15.94 kB / 475.9 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.1669, allocations: 4 kB / 475.9 MB, free: 9.043 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.0001229/0.1671, allocations: 132.5 kB / 476 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.84e-05/0.1671, allocations: 7.906 kB / 476 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.562e-05/0.1671, allocations: 20.48 kB / 476 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1671, allocations: 0 / 476 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.1671, allocations: 0 / 476 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1672, allocations: 3.984 kB / 476 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005895/0.1677, allocations: 449.4 kB / 476.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1678, allocations: 4 kB / 476.5 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.387e-05/0.1678, allocations: 11.92 kB / 476.5 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.838e-06/0.1678, allocations: 8 kB / 476.5 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.1679, allocations: 0 / 476.5 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1679, allocations: 0 / 476.5 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1679, allocations: 0 / 476.5 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003751/0.1682, allocations: 255.4 kB / 476.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.064e-05/0.1683, allocations: 88.95 kB / 476.8 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.704e-05/0.1684, allocations: 8 kB / 476.9 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.1685, allocations: 11.98 kB / 476.9 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.305e-05/0.1685, allocations: 7.984 kB / 476.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.643e-05/0.1686, allocations: 8 kB / 476.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.671e-05/0.1686, allocations: 91.27 kB / 477 MB, free: 7.859 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1687, allocations: 3.938 kB / 477 MB, free: 7.855 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002449/0.1689, allocations: 20 kB / 477 MB, free: 7.836 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.0002514/0.1692, allocations: 111.4 kB / 477.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002653/0.1694, allocations: 111.8 kB / 477.2 MB, free: 7.609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1694, allocations: 3.938 kB / 477.2 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001222/0.1696, allocations: 51.92 kB / 477.3 MB, free: 7.555 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002042/0.1698, allocations: 12.58 kB / 477.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004771/0.1703, allocations: 217.5 kB / 477.5 MB, free: 7.301 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003596/0.1706, allocations: 0.6965 MB / 478.2 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.393e-05/0.1707, allocations: 16.88 kB / 478.2 MB, free: 6.562 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.738e-05/0.1707, allocations: 15.44 kB / 478.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1708, allocations: 0 / 478.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of Templates: time 0.003798/0.1746, allocations: 0.8605 MB / 479.1 MB, free: 5.691 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches