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) 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) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 113.2 kB / 17.07 MB, free: 5.988 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.001037/0.001037, allocations: 195 kB / 18 MB, free: 5.074 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.411/1.411, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 47.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2618, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.002328/0.2642, allocations: 1.473 MB / 401.7 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001742/0.2643, allocations: 30.62 kB / 401.7 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.683e-05/0.2644, allocations: 1.281 kB / 401.7 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.589e-05/0.2645, allocations: 3.938 kB / 401.7 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.381e-05/0.2645, allocations: 5.188 kB / 401.8 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002318/0.2647, allocations: 26.22 kB / 401.8 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.223e-05/0.2648, allocations: 39.47 kB / 401.8 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.254e-05/0.2649, allocations: 8.938 kB / 401.8 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.357e-05/0.265, allocations: 25.75 kB / 401.8 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.019e-05/0.265, allocations: 16.52 kB / 401.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.643e-05/0.265, allocations: 3.344 kB / 401.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.01e-05/0.2651, allocations: 3.25 kB / 401.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.147e-05/0.2651, allocations: 12.98 kB / 401.9 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.802e-05/0.2651, allocations: 16.28 kB / 401.9 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.096e-05/0.2652, allocations: 39.34 kB / 401.9 MB, free: 7.109 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2652, allocations: 7.984 kB / 401.9 MB, free: 7.102 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.2652, allocations: 1.062 kB / 401.9 MB, free: 7.102 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.2653, allocations: 0 / 401.9 MB, free: 7.102 MB / 318.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.0004714/0.2657, allocations: 359.3 kB / 402.3 MB, free: 6.703 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.2658, allocations: 11.97 kB / 402.3 MB, free: 6.691 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.818e-05/0.2658, allocations: 34.75 kB / 402.3 MB, free: 6.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.276e-05/0.2658, allocations: 0.9375 kB / 402.3 MB, free: 6.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001775/0.266, allocations: 184.3 kB / 402.5 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.266, allocations: 4.375 kB / 402.5 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.113e-05/0.2661, allocations: 4.375 kB / 402.5 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005498/0.2666, allocations: 159.7 kB / 402.7 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.2666, allocations: 3.938 kB / 402.7 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.2667, allocations: 4 kB / 402.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.2667, allocations: 0 / 402.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002528/0.2669, allocations: 43.94 kB / 402.7 MB, free: 6.203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001212/0.2671, allocations: 165.7 kB / 402.9 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003099/0.2674, allocations: 82.5 kB / 403 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001562/0.2675, allocations: 44.83 kB / 403 MB, free: 5.855 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.828e-06/0.2676, allocations: 4 kB / 403 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.2676, allocations: 30.56 kB / 403.1 MB, free: 5.812 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.2676, allocations: 0 / 403.1 MB, free: 5.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004753/0.2681, allocations: 121.5 kB / 403.2 MB, free: 5.688 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.2681, allocations: 59.34 kB / 403.2 MB, free: 5.617 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.674e-05/0.2682, allocations: 105.8 kB / 403.3 MB, free: 5.504 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.2682, allocations: 29.7 kB / 403.4 MB, free: 5.469 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.954e-05/0.2683, allocations: 88.12 kB / 403.5 MB, free: 5.379 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.377e-05/0.2683, allocations: 3.984 kB / 403.5 MB, free: 5.375 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.749e-05/0.2683, allocations: 17.66 kB / 403.5 MB, free: 5.352 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.2684, allocations: 314.8 kB / 403.8 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.29e-05/0.2685, allocations: 8 kB / 403.8 MB, free: 5.027 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.9e-05/0.2685, allocations: 31.42 kB / 403.8 MB, free: 4.984 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.213e-05/0.2685, allocations: 35.38 kB / 403.9 MB, free: 4.938 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2685, allocations: 4 kB / 403.9 MB, free: 4.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.495e-05/0.2686, allocations: 65.58 kB / 403.9 MB, free: 4.863 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.2687, allocations: 11.94 kB / 403.9 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.2687, allocations: 3.938 kB / 403.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.2687, allocations: 0 / 403.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.473e-05/0.2687, allocations: 8 kB / 403.9 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.2688, allocations: 0 / 403.9 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.072e-05/0.2688, allocations: 7.938 kB / 404 MB, free: 4.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.547e-06/0.2688, allocations: 128 / 404 MB, free: 4.832 MB / 318.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 7.185e-05/0.2689, allocations: 126 kB / 404.1 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002953/0.2692, allocations: 85.58 kB / 404.2 MB, free: 4.609 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.598e-05/0.2692, allocations: 11.91 kB / 404.2 MB, free: 4.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.2692, allocations: 0 / 404.2 MB, free: 4.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.2692, allocations: 0 / 404.2 MB, free: 4.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.2692, allocations: 3.984 kB / 404.2 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001008/0.2693, allocations: 161.6 kB / 404.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2693, allocations: 0 / 404.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.791e-05/0.2694, allocations: 15.98 kB / 404.4 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.2694, allocations: 7.938 kB / 404.4 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.2695, allocations: 0 / 404.4 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.147e-06/0.2695, allocations: 3.938 kB / 404.4 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2695, allocations: 3.938 kB / 404.4 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003196/0.2698, allocations: 113.1 kB / 404.5 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.367e-05/0.2699, allocations: 81.06 kB / 404.6 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.773e-05/0.2699, allocations: 7.938 kB / 404.6 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.072e-05/0.27, allocations: 8.266 kB / 404.6 MB, free: 4.105 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.414e-06/0.27, allocations: 4 kB / 404.6 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.27, allocations: 4 kB / 404.6 MB, free: 4.098 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.01e-05/0.27, allocations: 87.58 kB / 404.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.27, allocations: 0 / 404.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001845/0.2702, allocations: 4 kB / 404.7 MB, free: 4.008 MB / 318.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.000726/0.271, allocations: 0.6943 MB / 405.4 MB, free: 3.285 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002039/0.2712, allocations: 43.89 kB / 405.4 MB, free: 3.242 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2712, allocations: 0 / 405.4 MB, free: 3.242 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.2712, allocations: 0 / 405.4 MB, free: 3.242 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003499/0.2715, allocations: 47.08 kB / 405.5 MB, free: 3.199 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009762/0.2725, allocations: 1.193 MB / 406.6 MB, free: 1.906 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002173/0.2728, allocations: 0.6844 MB / 407.3 MB, free: 1.195 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.174e-05/0.2728, allocations: 7.922 kB / 407.3 MB, free: 1.188 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.811e-05/0.2728, allocations: 15.44 kB / 407.4 MB, free: 1.172 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2728, allocations: 3.938 kB / 407.4 MB, free: 1.168 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01774/0.2906, allocations: 1.498 MB / 408.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.496/7.787, allocations: 4.125 kB / 408.9 MB, free: 15.79 MB / 334.1 MB (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.0004 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) 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) "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,ramp.y,periodicClock1.period,ramp.height