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.001536/0.001536, allocations: 103.3 kB / 18.4 MB, free: 4.57 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.001557/0.001557, allocations: 188 kB / 19.34 MB, free: 3.641 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.401/1.401, allocations: 222.9 MB / 243 MB, free: 15.15 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.2048/0.2048, allocations: 44.17 MB / 337.4 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 61.62 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1623/0.164, allocations: 60.82 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003911/0.168, allocations: 1.521 MB / 472.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.1691, allocations: 0.491 MB / 472.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.195e-05/0.1692, allocations: 0 / 472.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.141e-05/0.1693, allocations: 11.86 kB / 472.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.1695, allocations: 15.86 kB / 472.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002861/0.1698, allocations: 27.91 kB / 472.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001699/0.1699, allocations: 87.75 kB / 472.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.1701, allocations: 19.97 kB / 472.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001527/0.1703, allocations: 39.8 kB / 472.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.1704, allocations: 47.81 kB / 473 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.377e-05/0.1704, allocations: 8 kB / 473 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.172e-05/0.1704, allocations: 8 kB / 473 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.192e-05/0.1705, allocations: 19.92 kB / 473 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.497e-05/0.1706, allocations: 31.86 kB / 473 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000164/0.1707, allocations: 79.7 kB / 473.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.1708, allocations: 0 / 473.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1708, allocations: 3.938 kB / 473.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.1708, allocations: 0 / 473.1 MB, free: 11.25 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.0007987/0.1716, allocations: 399.2 kB / 473.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.1716, allocations: 8.031 kB / 473.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.408e-05/0.1717, allocations: 8.844 kB / 473.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001563/0.1719, allocations: 180.2 kB / 473.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.1719, allocations: 8.375 kB / 473.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.241e-05/0.1719, allocations: 12.38 kB / 473.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002268/0.1722, allocations: 89.7 kB / 473.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.1722, allocations: 11.88 kB / 473.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.1722, allocations: 0 / 473.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1722, allocations: 4 kB / 473.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001289/0.1724, allocations: 43.97 kB / 473.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006106/0.173, allocations: 320.7 kB / 474.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001941/0.1732, allocations: 90.55 kB / 474.3 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.025e-05/0.1733, allocations: 44.84 kB / 474.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.144e-05/0.1733, allocations: 11.92 kB / 474.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002408/0.1736, allocations: 91.36 kB / 474.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.1736, allocations: 0 / 474.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004958/0.1741, allocations: 185.7 kB / 474.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.1741, allocations: 67.38 kB / 474.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.752e-05/0.1743, allocations: 117.8 kB / 474.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.1743, allocations: 29.7 kB / 474.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.246e-05/0.1743, allocations: 92.42 kB / 474.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.292e-05/0.1744, allocations: 31.77 kB / 474.9 MB, free: 9.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.583e-05/0.1745, allocations: 41.7 kB / 474.9 MB, free: 9.188 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.1747, allocations: 326.7 kB / 475.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.613e-05/0.1747, allocations: 35.98 kB / 475.3 MB, free: 8.824 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.1749, allocations: 78.81 kB / 475.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002103/0.1751, allocations: 125.1 kB / 475.5 MB, free: 8.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1751, allocations: 4 kB / 475.5 MB, free: 8.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002664/0.1754, allocations: 149.4 kB / 475.7 MB, free: 8.434 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.1754, allocations: 4 kB / 475.7 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.1754, allocations: 0 / 475.7 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.1754, allocations: 4.156 kB / 475.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.1756, allocations: 35.86 kB / 475.7 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.1756, allocations: 3.938 kB / 475.7 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.511e-05/0.1757, allocations: 15.84 kB / 475.7 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.1757, allocations: 8 kB / 475.7 MB, free: 8.363 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 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001225/0.1758, allocations: 136 kB / 475.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.935e-05/0.1758, allocations: 7.906 kB / 475.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.588e-05/0.1759, allocations: 8.875 kB / 475.9 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.1759, allocations: 7.938 kB / 475.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.1759, allocations: 4 kB / 475.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1759, allocations: 0 / 475.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005379/0.1764, allocations: 446.3 kB / 476.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1765, allocations: 3.938 kB / 476.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.408e-05/0.1765, allocations: 7.984 kB / 476.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.1765, allocations: 0 / 476.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.1766, allocations: 8 kB / 476.3 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1766, allocations: 0 / 476.3 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1766, allocations: 0 / 476.3 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003064/0.1769, allocations: 251.3 kB / 476.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.596e-05/0.1769, allocations: 92.89 kB / 476.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.558e-05/0.177, allocations: 3.984 kB / 476.7 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.1771, allocations: 12 kB / 476.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.118e-05/0.1771, allocations: 7.984 kB / 476.7 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/0.1772, allocations: 11.98 kB / 476.7 MB, free: 7.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.45e-05/0.1772, allocations: 91.28 kB / 476.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1772, allocations: 0 / 476.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002619/0.1775, allocations: 23.98 kB / 476.8 MB, free: 7.156 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 (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.0001166/0.1776, allocations: 103.2 kB / 476.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002717/0.1779, allocations: 110.5 kB / 477 MB, free: 6.941 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1779, allocations: 0 / 477 MB, free: 6.941 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.178, allocations: 48.3 kB / 477.1 MB, free: 6.895 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.1783, allocations: 23.36 kB / 477.1 MB, free: 6.875 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005315/0.1789, allocations: 203.3 kB / 477.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003475/0.1793, allocations: 0.6924 MB / 478 MB, free: 5.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.392e-05/0.1793, allocations: 12.88 kB / 478 MB, free: 5.918 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.491e-05/0.1794, allocations: 11.44 kB / 478 MB, free: 5.906 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1794, allocations: 4 kB / 478 MB, free: 5.902 MB / 350.1 MB Notification: Performance of Templates: time 0.004366/0.1838, allocations: 0.9975 MB / 479 MB, free: 4.91 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches