Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001163/0.001163, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001253/0.001253, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.548/1.548, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002401/0.002401, allocations: 60.25 kB / 307.1 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1641, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.003873/0.168, allocations: 1.618 MB / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001344/0.1694, allocations: 0.5648 MB / 359.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.1696, allocations: 0 / 359.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.892e-05/0.1697, allocations: 7.875 kB / 359.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001786/0.1698, allocations: 15.86 kB / 359.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004047/0.1703, allocations: 55.83 kB / 359.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001419/0.1704, allocations: 63.77 kB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.1706, allocations: 19.98 kB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001536/0.1707, allocations: 31.86 kB / 360 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.1e-05/0.1708, allocations: 23.84 kB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/0.1708, allocations: 4 kB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.468e-05/0.1709, allocations: 8 kB / 360 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.25e-05/0.171, allocations: 23.92 kB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.617e-05/0.171, allocations: 35.73 kB / 360.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000183/0.1712, allocations: 59.73 kB / 360.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.1713, allocations: 0 / 360.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1713, allocations: 0 / 360.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.1713, allocations: 0 / 360.1 MB, free: 11.48 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007073/0.172, allocations: 391.3 kB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/0.1721, allocations: 15.97 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.703e-05/0.1721, allocations: 38.69 kB / 360.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002035/0.1723, allocations: 28.73 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002973/0.1726, allocations: 200.7 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.1726, allocations: 384 / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.1727, allocations: 7.938 kB / 360.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004193/0.1731, allocations: 138.7 kB / 360.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.1731, allocations: 3.938 kB / 360.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.1731, allocations: 7.984 kB / 360.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.1732, allocations: 0 / 360.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.947e-05/0.1733, allocations: 27.92 kB / 361 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000475/0.1738, allocations: 291.5 kB / 361.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001654/0.1739, allocations: 90.42 kB / 361.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.505e-05/0.174, allocations: 43.48 kB / 361.4 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.1741, allocations: 11.94 kB / 361.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.1741, allocations: 30.56 kB / 361.4 MB, free: 9.945 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.1741, allocations: 0 / 361.4 MB, free: 9.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003146/0.1744, allocations: 105.6 kB / 361.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.66e-05/0.1745, allocations: 136.5 kB / 361.6 MB, free: 9.672 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001437/0.1747, allocations: 146.4 kB / 361.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.1747, allocations: 25.7 kB / 361.8 MB, free: 9.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.819e-05/0.1748, allocations: 92.14 kB / 361.9 MB, free: 9.387 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.108e-05/0.1748, allocations: 3.906 kB / 361.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.235e-05/0.1749, allocations: 30.02 kB / 361.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.175, allocations: 314.8 kB / 362.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.213e-05/0.1751, allocations: 15.98 kB / 362.3 MB, free: 9.016 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.027e-05/0.1751, allocations: 44.22 kB / 362.3 MB, free: 8.957 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001137/0.1753, allocations: 64.22 kB / 362.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1753, allocations: 0 / 362.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001571/0.1754, allocations: 77.52 kB / 362.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.1755, allocations: 12.16 kB / 362.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.1755, allocations: 0 / 362.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.1755, allocations: 7.938 kB / 362.5 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.866e-05/0.1756, allocations: 11.98 kB / 362.5 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.1756, allocations: 7.938 kB / 362.5 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.574e-05/0.1757, allocations: 3.938 kB / 362.5 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.1757, allocations: 7.938 kB / 362.5 MB, free: 8.746 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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.0001064/0.1758, allocations: 126.9 kB / 362.6 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.16e-05/0.1759, allocations: 65.45 kB / 362.7 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.131e-05/0.1759, allocations: 19.81 kB / 362.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.1759, allocations: 128 / 362.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.176, allocations: 7.938 kB / 362.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.176, allocations: 7.938 kB / 362.7 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002103/0.1762, allocations: 177.6 kB / 362.9 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1762, allocations: 0 / 362.9 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.751e-05/0.1763, allocations: 12 kB / 362.9 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1763, allocations: 0 / 362.9 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.1763, allocations: 7.984 kB / 362.9 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.1763, allocations: 4 kB / 362.9 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.1763, allocations: 7.938 kB / 362.9 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002424/0.1766, allocations: 190 kB / 363.1 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.659e-05/0.1767, allocations: 93 kB / 363.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.1767, allocations: 8 kB / 363.2 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.278e-05/0.1768, allocations: 4 kB / 363.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.703e-05/0.1768, allocations: 7.922 kB / 363.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.483e-06/0.1769, allocations: 4 kB / 363.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.741e-05/0.177, allocations: 114.8 kB / 363.3 MB, free: 7.797 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.177, allocations: 3.938 kB / 363.3 MB, free: 7.793 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002367/0.1772, allocations: 8 kB / 363.3 MB, free: 7.785 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0005091/0.1777, allocations: 0.7227 MB / 364.1 MB, free: 7.027 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001885/0.1779, allocations: 60.03 kB / 364.1 MB, free: 6.969 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1779, allocations: 0 / 364.1 MB, free: 6.969 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.504e-05/0.178, allocations: 12 kB / 364.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005034/0.1785, allocations: 24.02 kB / 364.2 MB, free: 6.934 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.1802, allocations: 1.468 MB / 365.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002865/0.1805, allocations: 0.7002 MB / 366.3 MB, free: 4.621 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.869e-05/0.1805, allocations: 8.188 kB / 366.3 MB, free: 4.613 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.042e-05/0.1806, allocations: 27.36 kB / 366.4 MB, free: 4.586 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1806, allocations: 0 / 366.4 MB, free: 4.586 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02211/0.2027, allocations: 1.847 MB / 368.2 MB, free: 2.824 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.188/8.391, allocations: 0 / 368.2 MB, free: 2.824 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:time,hold1.u,hold1.y,sample1.y,shiftSample1.u,shiftSample1.y