Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008457/0.0008457, allocations: 83.69 kB / 20.68 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9088/0.9088, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.995e-05/2.151e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.002186/0.002208, allocations: 1.492 MB / 326.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001854/0.002393, allocations: 31.84 kB / 326.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.1e-05/0.002454, allocations: 4 kB / 326.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.854e-05/0.002483, allocations: 7.922 kB / 326.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.249e-05/0.002525, allocations: 7.875 kB / 326.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002425/0.002768, allocations: 27.97 kB / 326.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.52e-05/0.002853, allocations: 35.92 kB / 326.2 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.864e-05/0.002952, allocations: 11.98 kB / 326.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.38e-05/0.003015, allocations: 23.92 kB / 326.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.348e-05/0.003049, allocations: 7.984 kB / 326.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.343e-05/0.003072, allocations: 8 kB / 326.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.806e-06/0.003081, allocations: 4 kB / 326.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.025e-05/0.003101, allocations: 11.92 kB / 326.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.931e-05/0.003131, allocations: 11.98 kB / 326.3 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.609e-05/0.003227, allocations: 47.8 kB / 326.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.003229, allocations: 4 kB / 326.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.00323, allocations: 0 / 326.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.003235, allocations: 0 / 326.3 MB, free: 14.2 MB / 298.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.0003936/0.003628, allocations: 278.3 kB / 326.6 MB, free: 13.9 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.003673, allocations: 8.031 kB / 326.6 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.151e-05/0.003705, allocations: 34.75 kB / 326.6 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.349e-05/0.003728, allocations: 8.891 kB / 326.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.003904, allocations: 129.7 kB / 326.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.003923, allocations: 384 / 326.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.759e-06/0.003933, allocations: 8.375 kB / 326.8 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003396/0.004272, allocations: 151.8 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.201e-06/0.004278, allocations: 4.125 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.004287, allocations: 4.359 kB / 326.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.004293, allocations: 4.125 kB / 326.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001248/0.004418, allocations: 51.94 kB / 327 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001046/0.004522, allocations: 128.8 kB / 327.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001741/0.004696, allocations: 78.5 kB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.276e-05/0.004769, allocations: 36.91 kB / 327.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.408e-06/0.004778, allocations: 4 kB / 327.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.004797, allocations: 34.5 kB / 327.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.004798, allocations: 0 / 327.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002693/0.005067, allocations: 113.6 kB / 327.4 MB, free: 13 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.518e-05/0.005112, allocations: 63.28 kB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.032e-05/0.005173, allocations: 109.8 kB / 327.5 MB, free: 12.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.957e-06/0.005182, allocations: 33.7 kB / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.748e-05/0.005209, allocations: 80.14 kB / 327.6 MB, free: 12.69 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.154e-05/0.005221, allocations: 3.953 kB / 327.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.35e-05/0.005244, allocations: 17.72 kB / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.534e-05/0.00532, allocations: 314.8 kB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.867e-06/0.005328, allocations: 4 kB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.412e-06/0.005335, allocations: 4 kB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.1e-05/0.005356, allocations: 12.8 kB / 328 MB, free: 12.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.005358, allocations: 0 / 328 MB, free: 12.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.2e-05/0.0054, allocations: 41.77 kB / 328 MB, free: 12.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.005413, allocations: 8 kB / 328 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.005418, allocations: 0 / 328 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.00543, allocations: 3.984 kB / 328 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.536e-05/0.005475, allocations: 3.938 kB / 328.1 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.005481, allocations: 4 kB / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.027e-06/0.00549, allocations: 0 / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.985e-06/0.005493, allocations: 0 / 328.1 MB, free: 12.25 MB / 298.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 5.617e-05/0.00555, allocations: 113.8 kB / 328.2 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001431/0.005693, allocations: 93.53 kB / 328.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.11e-05/0.005714, allocations: 12.02 kB / 328.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.005715, allocations: 0 / 328.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.00572, allocations: 3.938 kB / 328.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.005723, allocations: 0 / 328.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.792e-05/0.005781, allocations: 128.8 kB / 328.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.005782, allocations: 0 / 328.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-05/0.005831, allocations: 15.98 kB / 328.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.005833, allocations: 0 / 328.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.005841, allocations: 8 kB / 328.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.005842, allocations: 3.938 kB / 328.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.005844, allocations: 3.938 kB / 328.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001612/0.006005, allocations: 117.2 kB / 328.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.934e-06/0.006013, allocations: 7.891 kB / 328.6 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.006027, allocations: 8.031 kB / 328.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.859e-05/0.006056, allocations: 11.98 kB / 328.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.527e-06/0.006059, allocations: 3.938 kB / 328.6 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-06/0.006064, allocations: 3.984 kB / 328.6 MB, free: 11.65 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.182e-05/0.006096, allocations: 83.28 kB / 328.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006096, allocations: 0 / 328.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001267/0.006222, allocations: 8 kB / 328.7 MB, free: 11.56 MB / 298.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.000436/0.006658, allocations: 0.6711 MB / 329.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001153/0.006774, allocations: 43.89 kB / 329.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.006776, allocations: 3.938 kB / 329.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.006776, allocations: 0 / 329.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.007053, allocations: 39.94 kB / 329.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007134/0.007766, allocations: 1.13 MB / 330.6 MB, free: 9.559 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.697e-05/0.007803, allocations: 63.34 kB / 330.6 MB, free: 9.477 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.326e-05/0.007827, allocations: 7.984 kB / 330.6 MB, free: 9.469 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.779e-05/0.007864, allocations: 16.59 kB / 330.6 MB, free: 9.453 MB / 298.7 MB Notification: Performance of SimCode: time 6.01e-07/0.007865, allocations: 0 / 330.6 MB, free: 9.453 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01433/0.0222, allocations: 2.15 MB / 332.8 MB, free: 7.43 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.876/6.898, allocations: 8.047 kB / 332.8 MB, free: 7.422 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.68636158015579]