Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008294/0.0008293, allocations: 177.4 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.637/1.637, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008029/0.0008029, allocations: 100.3 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4037/0.4037, allocations: 43.56 MB / 362.7 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000481/0.0004809, allocations: 19.98 kB / 431.4 MB, free: 6.145 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.1497, allocations: 58.83 MB / 490.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002153/0.1519, allocations: 1.227 MB / 491.5 MB, free: 9.984 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.153, allocations: 0.4971 MB / 491.9 MB, free: 9.48 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.063e-05/0.1531, allocations: 4 kB / 492 MB, free: 9.477 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.875e-05/0.1531, allocations: 3.938 kB / 492 MB, free: 9.473 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001239/0.1533, allocations: 11.92 kB / 492 MB, free: 9.461 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002584/0.1535, allocations: 31.91 kB / 492 MB, free: 9.43 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001267/0.1537, allocations: 79.77 kB / 492.1 MB, free: 9.352 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.1538, allocations: 11.97 kB / 492.1 MB, free: 9.34 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001544/0.154, allocations: 39.83 kB / 492.1 MB, free: 9.301 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.1541, allocations: 31.84 kB / 492.2 MB, free: 9.27 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.545e-05/0.1541, allocations: 8 kB / 492.2 MB, free: 9.262 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.748e-05/0.1541, allocations: 4 kB / 492.2 MB, free: 9.258 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.933e-05/0.1542, allocations: 15.97 kB / 492.2 MB, free: 9.242 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.887e-05/0.1542, allocations: 41.64 kB / 492.2 MB, free: 9.195 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.628e-05/0.1543, allocations: 43.91 kB / 492.3 MB, free: 9.152 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-05/0.1544, allocations: 4 kB / 492.3 MB, free: 9.148 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1544, allocations: 0 / 492.3 MB, free: 9.148 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.1544, allocations: 0 / 492.3 MB, free: 9.148 MB / 378.7 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.0007159/0.1551, allocations: 391.3 kB / 492.7 MB, free: 8.719 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.1552, allocations: 8.031 kB / 492.7 MB, free: 8.711 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.834e-05/0.1552, allocations: 15.86 kB / 492.7 MB, free: 8.695 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.1554, allocations: 178.8 kB / 492.9 MB, free: 8.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.1555, allocations: 15.92 kB / 492.9 MB, free: 8.465 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.395e-05/0.1555, allocations: 8 kB / 492.9 MB, free: 8.457 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002269/0.1557, allocations: 93.58 kB / 493 MB, free: 8.359 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.1557, allocations: 0 / 493 MB, free: 8.359 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/0.1558, allocations: 0 / 493 MB, free: 8.359 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.1558, allocations: 0 / 493 MB, free: 8.359 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001508/0.1559, allocations: 51.92 kB / 493 MB, free: 8.309 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006132/0.1566, allocations: 320.8 kB / 493.3 MB, free: 7.945 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.1568, allocations: 98.45 kB / 493.4 MB, free: 7.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.673e-05/0.1569, allocations: 44.84 kB / 493.5 MB, free: 7.793 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.1569, allocations: 0 / 493.5 MB, free: 7.793 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002486/0.1572, allocations: 115.3 kB / 493.6 MB, free: 7.668 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.934e-06/0.1572, allocations: 0 / 493.6 MB, free: 7.668 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004683/0.1577, allocations: 189.6 kB / 493.8 MB, free: 7.477 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.373e-05/0.1577, allocations: 59.39 kB / 493.8 MB, free: 7.406 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.836e-05/0.1578, allocations: 121.9 kB / 493.9 MB, free: 7.277 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.096e-05/0.1579, allocations: 37.69 kB / 494 MB, free: 7.234 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.998e-05/0.158, allocations: 88.42 kB / 494.1 MB, free: 7.145 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.857e-05/0.158, allocations: 35.55 kB / 494.1 MB, free: 7.109 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.673e-06/0.158, allocations: 0 / 494.1 MB, free: 7.109 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.1582, allocations: 322.8 kB / 494.4 MB, free: 6.785 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.948e-05/0.1583, allocations: 36.36 kB / 494.5 MB, free: 6.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001494/0.1584, allocations: 81.88 kB / 494.5 MB, free: 6.652 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001112/0.1585, allocations: 48.09 kB / 494.6 MB, free: 6.605 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.1585, allocations: 0 / 494.6 MB, free: 6.605 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000288/0.1588, allocations: 165.4 kB / 494.7 MB, free: 6.438 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.1589, allocations: 7.984 kB / 494.8 MB, free: 6.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.1589, allocations: 7.953 kB / 494.8 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.1589, allocations: 0 / 494.8 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.159, allocations: 19.98 kB / 494.8 MB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.159, allocations: 7.938 kB / 494.8 MB, free: 6.395 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.085e-05/0.1591, allocations: 20 kB / 494.8 MB, free: 6.375 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/0.1591, allocations: 8.375 kB / 494.8 MB, free: 6.367 MB / 378.7 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.0001242/0.1593, allocations: 132.1 kB / 494.9 MB, free: 6.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.978e-05/0.1593, allocations: 7.906 kB / 495 MB, free: 6.223 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.878e-05/0.1593, allocations: 12.48 kB / 495 MB, free: 6.215 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1594, allocations: 11.89 kB / 495 MB, free: 6.203 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1594, allocations: 0 / 495 MB, free: 6.203 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1594, allocations: 0 / 495 MB, free: 6.203 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005774/0.16, allocations: 446.4 kB / 495.4 MB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.16, allocations: 0 / 495.4 MB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.755e-05/0.16, allocations: 19.88 kB / 495.4 MB, free: 5.691 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.1601, allocations: 0 / 495.4 MB, free: 5.691 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.1601, allocations: 7.938 kB / 495.4 MB, free: 5.684 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1601, allocations: 0 / 495.4 MB, free: 5.684 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1601, allocations: 0 / 495.4 MB, free: 5.684 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003306/0.1604, allocations: 255.4 kB / 495.7 MB, free: 5.418 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.427e-05/0.1605, allocations: 84.95 kB / 495.8 MB, free: 5.316 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.788e-05/0.1605, allocations: 11.95 kB / 495.8 MB, free: 5.305 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.1606, allocations: 11.98 kB / 495.8 MB, free: 5.293 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.437e-05/0.1607, allocations: 11.98 kB / 495.8 MB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.569e-05/0.1607, allocations: 12 kB / 495.8 MB, free: 5.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.507e-05/0.1608, allocations: 91.27 kB / 495.9 MB, free: 5.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1608, allocations: 0 / 495.9 MB, free: 5.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002322/0.161, allocations: 20 kB / 495.9 MB, free: 5.16 MB / 378.7 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.0001378/0.1612, allocations: 103.2 kB / 496 MB, free: 5.047 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002567/0.1614, allocations: 107.9 kB / 496.1 MB, free: 4.941 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1615, allocations: 0 / 496.1 MB, free: 4.941 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.1616, allocations: 55.92 kB / 496.2 MB, free: 4.887 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003007/0.1619, allocations: 11.98 kB / 496.2 MB, free: 4.875 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005947/0.1625, allocations: 248.4 kB / 496.4 MB, free: 4.594 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.1628, allocations: 0.7042 MB / 497.1 MB, free: 3.863 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.076e-05/0.1629, allocations: 11.44 kB / 497.2 MB, free: 3.852 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.1629, allocations: 0 / 497.2 MB, free: 3.852 MB / 378.7 MB Notification: Performance of Templates: time 0.003076/0.166, allocations: 1.202 MB / 498.4 MB, free: 2.66 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches