Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 112 kB / 20.43 MB, free: 1.309 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 190.4 kB / 23.72 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 51.92 kB / 370.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2649, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.002916/0.2678, allocations: 1.478 MB / 424.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001938/0.268, allocations: 31.91 kB / 424.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.6e-05/0.2681, allocations: 7.938 kB / 424.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.353e-05/0.2681, allocations: 0 / 424.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.408e-05/0.2682, allocations: 7.922 kB / 424.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002432/0.2684, allocations: 19.98 kB / 424.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001031/0.2685, allocations: 39.91 kB / 424.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.2686, allocations: 11.98 kB / 424.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.021e-05/0.2687, allocations: 19.92 kB / 424.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.963e-05/0.2687, allocations: 15.92 kB / 424.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.835e-05/0.2687, allocations: 4 kB / 424.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.156e-05/0.2688, allocations: 4 kB / 424.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.241e-05/0.2688, allocations: 11.88 kB / 424.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.415e-05/0.2688, allocations: 19.92 kB / 424.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001084/0.2689, allocations: 40.8 kB / 424.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2689, allocations: 0 / 424.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2689, allocations: 0 / 424.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.2689, allocations: 4 kB / 424.4 MB, free: 12.89 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005303/0.2695, allocations: 281.7 kB / 424.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.2695, allocations: 12.03 kB / 424.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.504e-05/0.2696, allocations: 34.73 kB / 424.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.462e-05/0.2696, allocations: 0.9375 kB / 424.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000226/0.2698, allocations: 126.4 kB / 424.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.2698, allocations: 4.359 kB / 424.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.019e-05/0.2698, allocations: 4.375 kB / 424.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006108/0.2705, allocations: 167.7 kB / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.2705, allocations: 3.938 kB / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.2705, allocations: 0 / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2705, allocations: 3.938 kB / 425 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002516/0.2707, allocations: 47.94 kB / 425 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001592/0.2709, allocations: 132.7 kB / 425.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003236/0.2712, allocations: 90.44 kB / 425.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001432/0.2714, allocations: 32.91 kB / 425.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.288e-05/0.2714, allocations: 0 / 425.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.375e-05/0.2714, allocations: 34.56 kB / 425.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.91e-07/0.2714, allocations: 0 / 425.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004826/0.2719, allocations: 125.4 kB / 425.4 MB, free: 11.67 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.272, allocations: 59.34 kB / 425.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.2721, allocations: 113.8 kB / 425.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.2721, allocations: 25.7 kB / 425.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.733e-05/0.2721, allocations: 88.14 kB / 425.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.204e-05/0.2721, allocations: 0 / 425.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.229e-05/0.2722, allocations: 17.72 kB / 425.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.2723, allocations: 314.8 kB / 426 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.383e-05/0.2723, allocations: 4 kB / 426 MB, free: 11.01 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.777e-05/0.2724, allocations: 31.44 kB / 426.1 MB, free: 10.97 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.926e-05/0.2724, allocations: 35.38 kB / 426.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2724, allocations: 0 / 426.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001045/0.2725, allocations: 69.58 kB / 426.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.2726, allocations: 7.938 kB / 426.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.2726, allocations: 4 kB / 426.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.2726, allocations: 0 / 426.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.942e-05/0.2726, allocations: 15.92 kB / 426.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.2726, allocations: 0 / 426.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.559e-05/0.2727, allocations: 8.125 kB / 426.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-06/0.2727, allocations: 0 / 426.2 MB, free: 10.81 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.ramp.counter,ramp.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (ramp.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 9.074e-05/0.2728, allocations: 117.9 kB / 426.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000298/0.2731, allocations: 89.58 kB / 426.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.228e-05/0.2731, allocations: 11.98 kB / 426.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.2731, allocations: 4.234 kB / 426.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.2731, allocations: 3.938 kB / 426.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.2731, allocations: 0 / 426.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001051/0.2732, allocations: 136.7 kB / 426.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2732, allocations: 0 / 426.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.2733, allocations: 15.98 kB / 426.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.2733, allocations: 3.938 kB / 426.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.2733, allocations: 0 / 426.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.2733, allocations: 11.92 kB / 426.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2733, allocations: 0 / 426.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003258/0.2737, allocations: 109.1 kB / 426.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.097e-05/0.2737, allocations: 7.891 kB / 426.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/0.2737, allocations: 11.92 kB / 426.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.06e-05/0.2738, allocations: 11.98 kB / 426.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.405e-06/0.2738, allocations: 0 / 426.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.079e-06/0.2738, allocations: 0 / 426.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.59e-05/0.2738, allocations: 87.28 kB / 426.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2738, allocations: 0 / 426.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000188/0.274, allocations: 11.94 kB / 426.8 MB, free: 10.11 MB / 334.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: 1 (ramp.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (ramp.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0007998/0.2748, allocations: 0.6749 MB / 427.5 MB, free: 9.402 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002024/0.275, allocations: 48.08 kB / 427.6 MB, free: 9.355 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.275, allocations: 0 / 427.6 MB, free: 9.355 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.275, allocations: 0 / 427.6 MB, free: 9.355 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.2754, allocations: 39.98 kB / 427.6 MB, free: 9.316 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.2766, allocations: 1.196 MB / 428.8 MB, free: 8.023 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003105/0.2769, allocations: 0.6883 MB / 429.5 MB, free: 7.309 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.437e-05/0.2769, allocations: 4 kB / 429.5 MB, free: 7.305 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.136e-05/0.277, allocations: 11.44 kB / 429.5 MB, free: 7.293 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.277, allocations: 0 / 429.5 MB, free: 7.293 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02822/0.3052, allocations: 1.616 MB / 431.1 MB, free: 5.816 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.15, allocations: 12.41 kB / 431.1 MB, free: 5.805 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199561 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,ramp.y,periodicClock1.period,ramp.height [Calling sys.exit(0), Time elapsed: 13.676203158000135]