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.001297/0.001298, allocations: 117.2 kB / 17.78 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001822/0.001822, allocations: 200.6 kB / 18.73 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.56/1.56, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002405/0.002405, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4495/0.452, allocations: 50.55 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.003075/0.4551, allocations: 1.611 MB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.4561, allocations: 0.5648 MB / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.131e-05/0.4562, allocations: 4 kB / 410.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.21e-05/0.4563, allocations: 11.86 kB / 411 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001545/0.4565, allocations: 7.875 kB / 411 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003281/0.4568, allocations: 59.81 kB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000116/0.4569, allocations: 59.83 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.4571, allocations: 20 kB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.4572, allocations: 31.8 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.581e-05/0.4573, allocations: 27.86 kB / 411.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.887e-05/0.4573, allocations: 7.984 kB / 411.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.911e-05/0.4573, allocations: 4 kB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.281e-05/0.4574, allocations: 15.92 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.338e-05/0.4574, allocations: 35.73 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.4576, allocations: 66.69 kB / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.4576, allocations: 0 / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4576, allocations: 4 kB / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.03e-06/0.4576, allocations: 0 / 411.3 MB, free: 15.01 MB / 334.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.0005348/0.4582, allocations: 394.9 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.4582, allocations: 8.031 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.353e-05/0.4583, allocations: 38.69 kB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.4584, allocations: 16.88 kB / 411.7 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003043/0.4587, allocations: 216.7 kB / 411.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.4588, allocations: 12.31 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.748e-05/0.4588, allocations: 7.922 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002998/0.4591, allocations: 130.7 kB / 412.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.4591, allocations: 0 / 412.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.4591, allocations: 8 kB / 412.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.4591, allocations: 0 / 412.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.94e-05/0.4592, allocations: 27.92 kB / 412.1 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003895/0.4596, allocations: 283.5 kB / 412.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/0.4598, allocations: 94.36 kB / 412.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.623e-05/0.4599, allocations: 51.48 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.741e-05/0.4599, allocations: 4 kB / 412.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.46, allocations: 38.55 kB / 412.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.183e-06/0.46, allocations: 0 / 412.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003/0.4603, allocations: 97.94 kB / 412.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.264e-05/0.4603, allocations: 136.6 kB / 412.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.4605, allocations: 153.5 kB / 413 MB, free: 13.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.4605, allocations: 25.7 kB / 413 MB, free: 13 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.392e-05/0.4606, allocations: 100.1 kB / 413.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.4606, allocations: 3.953 kB / 413.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.781e-05/0.4606, allocations: 25.67 kB / 413.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.4608, allocations: 322.8 kB / 413.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.728e-05/0.4608, allocations: 8 kB / 413.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.257e-05/0.4609, allocations: 44.28 kB / 413.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001048/0.461, allocations: 60.22 kB / 413.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.461, allocations: 0 / 413.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001687/0.4612, allocations: 89.5 kB / 413.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.4612, allocations: 4 kB / 413.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.4612, allocations: 0 / 413.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.4613, allocations: 8.156 kB / 413.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.671e-05/0.4613, allocations: 11.98 kB / 413.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.4614, allocations: 7.938 kB / 413.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.536e-05/0.4614, allocations: 4 kB / 413.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.4614, allocations: 3.984 kB / 413.7 MB, free: 12.27 MB / 334.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.0001003/0.4615, allocations: 129.7 kB / 413.8 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.28e-05/0.4616, allocations: 57.64 kB / 413.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.152e-05/0.4617, allocations: 19.77 kB / 413.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.4617, allocations: 4.062 kB / 413.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.4617, allocations: 7.938 kB / 413.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.4617, allocations: 0 / 413.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001952/0.4619, allocations: 177.6 kB / 414.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.4619, allocations: 4 kB / 414.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.55e-05/0.462, allocations: 15.92 kB / 414.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.462, allocations: 0 / 414.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.462, allocations: 8 kB / 414.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.462, allocations: 0 / 414.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.462, allocations: 7.938 kB / 414.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002102/0.4623, allocations: 194.2 kB / 414.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.239e-05/0.4623, allocations: 97.05 kB / 414.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2e-05/0.4624, allocations: 11.92 kB / 414.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.618e-05/0.4624, allocations: 8 kB / 414.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.666e-05/0.4625, allocations: 7.938 kB / 414.4 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.4625, allocations: 4 kB / 414.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.63e-05/0.4626, allocations: 111.2 kB / 414.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4626, allocations: 0 / 414.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002383/0.4629, allocations: 12 kB / 414.5 MB, free: 11.29 MB / 334.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.0004724/0.4633, allocations: 0.7266 MB / 415.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001553/0.4635, allocations: 43.86 kB / 415.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.4635, allocations: 320 / 415.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.348e-05/0.4636, allocations: 15.98 kB / 415.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003919/0.464, allocations: 39.44 kB / 415.4 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.4654, allocations: 1.46 MB / 416.8 MB, free: 8.859 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.4657, allocations: 0.704 MB / 417.5 MB, free: 8.129 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.339e-05/0.4658, allocations: 7.984 kB / 417.5 MB, free: 8.121 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.565e-05/0.4658, allocations: 23.42 kB / 417.5 MB, free: 8.098 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4658, allocations: 3.938 kB / 417.6 MB, free: 8.094 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01907/0.4849, allocations: 1.869 MB / 419.4 MB, free: 6.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.238/8.723, allocations: 16 kB / 419.4 MB, free: 6.305 MB / 334.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