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.0009192/0.0009192, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001651/0.001651, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.9223/0.9223, allocations: 173.4 MB / 200.4 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] 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 2.024e-06/2.024e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.892e-05/3.095e-05, allocations: 6.219 kB / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.002193/0.002224, allocations: 1.453 MB / 319.9 MB, free: 4.875 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002105/0.002434, allocations: 39.83 kB / 319.9 MB, free: 4.836 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.319e-05/0.002507, allocations: 0 / 319.9 MB, free: 4.836 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.527e-05/0.002542, allocations: 3.938 kB / 319.9 MB, free: 4.832 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.311e-05/0.002596, allocations: 7.922 kB / 320 MB, free: 4.824 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003132/0.002909, allocations: 23.92 kB / 320 MB, free: 4.801 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.003009, allocations: 47.84 kB / 320 MB, free: 4.754 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.003128, allocations: 11.98 kB / 320 MB, free: 4.742 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.083e-05/0.003198, allocations: 23.98 kB / 320.1 MB, free: 4.719 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.133e-05/0.00324, allocations: 11.98 kB / 320.1 MB, free: 4.707 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.608e-05/0.003266, allocations: 4 kB / 320.1 MB, free: 4.703 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.024e-05/0.003276, allocations: 4 kB / 320.1 MB, free: 4.699 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.189e-05/0.003298, allocations: 15.91 kB / 320.1 MB, free: 4.684 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.137e-05/0.003329, allocations: 8 kB / 320.1 MB, free: 4.676 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.003441, allocations: 39.81 kB / 320.1 MB, free: 4.637 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.003443, allocations: 0 / 320.1 MB, free: 4.637 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.003444, allocations: 0 / 320.1 MB, free: 4.637 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.003449, allocations: 0 / 320.1 MB, free: 4.637 MB / 282.7 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.0003802/0.003829, allocations: 278.3 kB / 320.4 MB, free: 4.332 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.003874, allocations: 16.92 kB / 320.4 MB, free: 4.316 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.189e-05/0.003906, allocations: 38.75 kB / 320.5 MB, free: 4.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.28e-05/0.003928, allocations: 8.891 kB / 320.5 MB, free: 4.262 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.004098, allocations: 117.7 kB / 320.6 MB, free: 4.121 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.004118, allocations: 8.375 kB / 320.6 MB, free: 4.113 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.566e-06/0.004127, allocations: 384 / 320.6 MB, free: 4.113 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005754/0.004702, allocations: 155.8 kB / 320.7 MB, free: 3.949 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.00471, allocations: 8.125 kB / 320.8 MB, free: 3.941 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.00472, allocations: 384 / 320.8 MB, free: 3.941 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.004726, allocations: 8.125 kB / 320.8 MB, free: 3.934 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001252/0.004851, allocations: 51.88 kB / 320.8 MB, free: 3.883 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001081/0.004959, allocations: 128.7 kB / 320.9 MB, free: 3.715 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.00513, allocations: 78.52 kB / 321 MB, free: 3.629 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.588e-05/0.005206, allocations: 36.91 kB / 321.1 MB, free: 3.59 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.628e-06/0.005216, allocations: 0 / 321.1 MB, free: 3.59 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.126e-05/0.005237, allocations: 30.56 kB / 321.1 MB, free: 3.551 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.005238, allocations: 0 / 321.1 MB, free: 3.551 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003222/0.00556, allocations: 121.5 kB / 321.2 MB, free: 3.426 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.828e-05/0.005618, allocations: 63.34 kB / 321.3 MB, free: 3.352 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.632e-05/0.005685, allocations: 109.8 kB / 321.4 MB, free: 3.234 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.949e-06/0.005695, allocations: 25.7 kB / 321.4 MB, free: 3.203 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.863e-05/0.005723, allocations: 84.14 kB / 321.5 MB, free: 3.117 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.331e-05/0.005736, allocations: 4 kB / 321.5 MB, free: 3.113 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.327e-05/0.00576, allocations: 9.719 kB / 321.5 MB, free: 3.098 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.035e-05/0.00584, allocations: 322.8 kB / 321.8 MB, free: 2.773 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.947e-06/0.005849, allocations: 0 / 321.8 MB, free: 2.773 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.352e-06/0.005855, allocations: 4 kB / 321.8 MB, free: 2.77 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.301e-05/0.005878, allocations: 12.86 kB / 321.8 MB, free: 2.754 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.00588, allocations: 3.938 kB / 321.8 MB, free: 2.75 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.252e-05/0.005923, allocations: 45.66 kB / 321.9 MB, free: 2.699 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.00594, allocations: 7.984 kB / 321.9 MB, free: 2.691 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.005945, allocations: 0 / 321.9 MB, free: 2.691 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.005956, allocations: 0 / 321.9 MB, free: 2.691 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.287e-05/0.006009, allocations: 7.938 kB / 321.9 MB, free: 2.684 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.006014, allocations: 0 / 321.9 MB, free: 2.684 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.378e-06/0.006024, allocations: 0 / 321.9 MB, free: 2.684 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.328e-06/0.006028, allocations: 0 / 321.9 MB, free: 2.684 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 2 * 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 6.234e-05/0.00609, allocations: 126 kB / 322 MB, free: 2.551 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/0.006234, allocations: 93.55 kB / 322.1 MB, free: 2.453 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.288e-05/0.006257, allocations: 12 kB / 322.1 MB, free: 2.434 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.006259, allocations: 0 / 322.1 MB, free: 2.434 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.006264, allocations: 3.938 kB / 322.1 MB, free: 2.43 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.006267, allocations: 0 / 322.1 MB, free: 2.43 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.901e-05/0.006326, allocations: 128.7 kB / 322.2 MB, free: 2.262 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.006327, allocations: 0 / 322.2 MB, free: 2.262 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.739e-05/0.006375, allocations: 15.98 kB / 322.3 MB, free: 2.246 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.006377, allocations: 4 kB / 322.3 MB, free: 2.242 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.006383, allocations: 0 / 322.3 MB, free: 2.242 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.006386, allocations: 7.984 kB / 322.3 MB, free: 2.234 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.006388, allocations: 3.938 kB / 322.3 MB, free: 2.23 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002914/0.006679, allocations: 109 kB / 322.4 MB, free: 2.105 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.109e-05/0.00669, allocations: 15.88 kB / 322.4 MB, free: 2.09 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.431e-05/0.006705, allocations: 4 kB / 322.4 MB, free: 2.086 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.707e-05/0.006732, allocations: 7.984 kB / 322.4 MB, free: 2.078 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.116e-06/0.006735, allocations: 3.938 kB / 322.4 MB, free: 2.074 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.006739, allocations: 4 kB / 322.4 MB, free: 2.07 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.785e-05/0.006767, allocations: 83.28 kB / 322.5 MB, free: 1.988 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006767, allocations: 0 / 322.5 MB, free: 1.988 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001206/0.006888, allocations: 4 kB / 322.5 MB, free: 1.984 MB / 282.7 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.0004506/0.007338, allocations: 0.6788 MB / 323.2 MB, free: 1.277 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001202/0.007458, allocations: 35.89 kB / 323.2 MB, free: 1.242 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.00746, allocations: 0 / 323.2 MB, free: 1.242 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.34e-06/0.007465, allocations: 4 kB / 323.2 MB, free: 1.238 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002666/0.007732, allocations: 43.92 kB / 323.3 MB, free: 1.195 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007107/0.008443, allocations: 1.133 MB / 324.4 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.257e-05/0.008485, allocations: 71.48 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.2e-05/0.008507, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.555e-05/0.008553, allocations: 16.5 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of SimCode: time 8.71e-07/0.008554, allocations: 0 / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01747/0.02602, allocations: 2.147 MB / 326.6 MB, free: 13.86 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.743/6.769, allocations: 7.797 kB / 326.6 MB, free: 13.85 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","/var/lib/jenkins/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: 8.648655842989683]