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.001193/0.001192, allocations: 109.3 kB / 17.06 MB, free: 5.992 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.001111/0.001111, allocations: 200 kB / 18.01 MB, free: 5.066 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.308/1.308, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 43.92 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2603, allocations: 49.45 MB / 400.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.002728/0.2631, allocations: 1.458 MB / 401.7 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001912/0.2633, allocations: 34.88 kB / 401.7 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.67e-05/0.2634, allocations: 1.312 kB / 401.7 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.794e-05/0.2634, allocations: 3.938 kB / 401.8 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.93e-05/0.2635, allocations: 7.938 kB / 401.8 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002447/0.2637, allocations: 30.95 kB / 401.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.731e-05/0.2638, allocations: 35.58 kB / 401.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.2639, allocations: 12.42 kB / 401.8 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.599e-05/0.264, allocations: 17.42 kB / 401.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.652e-05/0.2641, allocations: 24.28 kB / 401.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.63e-05/0.2641, allocations: 3.781 kB / 401.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.999e-06/0.2641, allocations: 3.875 kB / 401.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.283e-05/0.2642, allocations: 9.25 kB / 401.9 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.063e-05/0.2642, allocations: 19.17 kB / 401.9 MB, free: 7.121 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001064/0.2643, allocations: 40.31 kB / 402 MB, free: 7.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2643, allocations: 0 / 402 MB, free: 7.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2643, allocations: 0 / 402 MB, free: 7.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.008e-06/0.2643, allocations: 0 / 402 MB, free: 7.09 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.0005271/0.2649, allocations: 362.1 kB / 402.3 MB, free: 6.699 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.2649, allocations: 8.031 kB / 402.3 MB, free: 6.691 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.649e-05/0.265, allocations: 30.75 kB / 402.3 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.375e-05/0.265, allocations: 4.938 kB / 402.3 MB, free: 6.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002192/0.2652, allocations: 196.1 kB / 402.5 MB, free: 6.418 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.088e-05/0.2652, allocations: 4.375 kB / 402.5 MB, free: 6.414 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.2653, allocations: 384 / 402.5 MB, free: 6.414 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005409/0.2658, allocations: 155.8 kB / 402.7 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.2658, allocations: 3.938 kB / 402.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-06/0.2658, allocations: 0 / 402.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2658, allocations: 0 / 402.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002538/0.2661, allocations: 55.88 kB / 402.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001409/0.2663, allocations: 161.7 kB / 402.9 MB, free: 5.984 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000341/0.2666, allocations: 86.48 kB / 403 MB, free: 5.891 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.2668, allocations: 36.91 kB / 403 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.2668, allocations: 0 / 403 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.2668, allocations: 34.56 kB / 403.1 MB, free: 5.809 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 8.62e-07/0.2668, allocations: 4 kB / 403.1 MB, free: 5.805 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004896/0.2673, allocations: 121.4 kB / 403.2 MB, free: 5.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.224e-05/0.2674, allocations: 63.33 kB / 403.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/0.2675, allocations: 101.9 kB / 403.3 MB, free: 5.496 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.2676, allocations: 25.7 kB / 403.4 MB, free: 5.465 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.309e-05/0.2676, allocations: 88.12 kB / 403.5 MB, free: 5.375 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.65e-05/0.2676, allocations: 4 kB / 403.5 MB, free: 5.371 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.01e-05/0.2677, allocations: 13.72 kB / 403.5 MB, free: 5.352 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.2678, allocations: 322.8 kB / 403.8 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.435e-05/0.2678, allocations: 8 kB / 403.8 MB, free: 5.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.5e-05/0.2678, allocations: 23.44 kB / 403.8 MB, free: 4.984 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.865e-05/0.2679, allocations: 43.38 kB / 403.9 MB, free: 4.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2679, allocations: 0 / 403.9 MB, free: 4.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.102e-05/0.268, allocations: 65.52 kB / 403.9 MB, free: 4.859 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.268, allocations: 7.938 kB / 403.9 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.268, allocations: 0 / 403.9 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.268, allocations: 4 kB / 403.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.948e-05/0.2681, allocations: 11.98 kB / 404 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.2681, allocations: 0 / 404 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.012e-05/0.2681, allocations: 4.125 kB / 404 MB, free: 4.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.2682, allocations: 4 kB / 404 MB, free: 4.828 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 8.521e-05/0.2682, allocations: 113.8 kB / 404.1 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002818/0.2685, allocations: 89.52 kB / 404.2 MB, free: 4.613 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.152e-05/0.2686, allocations: 11.89 kB / 404.2 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.2686, allocations: 0 / 404.2 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.2686, allocations: 128 / 404.2 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.2686, allocations: 4 kB / 404.2 MB, free: 4.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001027/0.2687, allocations: 165.6 kB / 404.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2687, allocations: 4 kB / 404.3 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.29e-05/0.2688, allocations: 15.92 kB / 404.4 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.2688, allocations: 3.938 kB / 404.4 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.2688, allocations: 0 / 404.4 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.2688, allocations: 7.938 kB / 404.4 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.2688, allocations: 3.984 kB / 404.4 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003214/0.2692, allocations: 109 kB / 404.5 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.806e-05/0.2692, allocations: 89.05 kB / 404.6 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.2693, allocations: 7.938 kB / 404.6 MB, free: 4.105 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.557e-05/0.2693, allocations: 11.98 kB / 404.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.377e-06/0.2693, allocations: 0 / 404.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.2694, allocations: 4 kB / 404.6 MB, free: 4.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.29e-05/0.2694, allocations: 83.28 kB / 404.7 MB, free: 4.008 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2694, allocations: 0 / 404.7 MB, free: 4.008 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001864/0.2696, allocations: 4 kB / 404.7 MB, free: 4.004 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.0007967/0.2704, allocations: 0.6907 MB / 405.4 MB, free: 3.285 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002074/0.2706, allocations: 47.89 kB / 405.4 MB, free: 3.238 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2706, allocations: 0 / 405.4 MB, free: 3.238 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-07/0.2706, allocations: 0 / 405.4 MB, free: 3.238 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003627/0.271, allocations: 43.92 kB / 405.5 MB, free: 3.195 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.2722, allocations: 1.193 MB / 406.6 MB, free: 1.902 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.2725, allocations: 0.6883 MB / 407.3 MB, free: 1.188 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.226e-05/0.2725, allocations: 4 kB / 407.3 MB, free: 1.184 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.014e-05/0.2725, allocations: 11.44 kB / 407.4 MB, free: 1.172 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.2726, allocations: 0 / 407.4 MB, free: 1.172 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0212/0.2938, allocations: 1.494 MB / 408.8 MB, free: 15.8 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.62/7.914, allocations: 0.625 kB / 408.8 MB, free: 15.8 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