Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008589/0.0008588, allocations: 181.8 kB / 16.71 MB, free: 4.965 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 225.7 MB / 243.2 MB, free: 8.457 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007957/0.0007959, allocations: 92.73 kB / 294.4 MB, free: 9.504 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003676/0.0003676, allocations: 11.94 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2764, allocations: 50.42 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.001388/0.2778, allocations: 1.175 MB / 405.8 MB, free: 30.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001755/0.278, allocations: 35.91 kB / 405.8 MB, free: 30.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.162e-05/0.2781, allocations: 0 / 405.8 MB, free: 30.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.998e-05/0.2781, allocations: 7.922 kB / 405.8 MB, free: 30.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.021e-05/0.2782, allocations: 0 / 405.8 MB, free: 30.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.2784, allocations: 19.98 kB / 405.8 MB, free: 30.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.402e-05/0.2785, allocations: 39.91 kB / 405.9 MB, free: 30.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.2786, allocations: 12.78 kB / 405.9 MB, free: 30.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.365e-05/0.2787, allocations: 11.92 kB / 405.9 MB, free: 30.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.867e-05/0.2787, allocations: 17.73 kB / 405.9 MB, free: 30 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.294e-05/0.2788, allocations: 4 kB / 405.9 MB, free: 30 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.053e-05/0.2788, allocations: 0 / 405.9 MB, free: 30 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.14e-05/0.2788, allocations: 7.938 kB / 405.9 MB, free: 29.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.345e-05/0.2789, allocations: 37.62 kB / 405.9 MB, free: 29.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.392e-05/0.279, allocations: 36.64 kB / 406 MB, free: 29.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.279, allocations: 0 / 406 MB, free: 29.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.279, allocations: 0.5625 kB / 406 MB, free: 29.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.496e-06/0.279, allocations: 3.938 kB / 406 MB, free: 29.91 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.0004102/0.2794, allocations: 354.7 kB / 406.3 MB, free: 29.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.2795, allocations: 8.031 kB / 406.3 MB, free: 29.51 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.299e-05/0.2795, allocations: 12.83 kB / 406.4 MB, free: 29.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.2796, allocations: 177 kB / 406.5 MB, free: 29.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.2797, allocations: 4.906 kB / 406.5 MB, free: 29.28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.485e-05/0.2797, allocations: 4.375 kB / 406.5 MB, free: 29.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004725/0.2802, allocations: 165.9 kB / 406.7 MB, free: 29.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.2802, allocations: 192 / 406.7 MB, free: 29.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-06/0.2802, allocations: 7.938 kB / 406.7 MB, free: 29.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.2802, allocations: 3.5 kB / 406.7 MB, free: 29.1 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.2804, allocations: 51.94 kB / 406.8 MB, free: 29.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.545e-05/0.2805, allocations: 157.7 kB / 406.9 MB, free: 28.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000251/0.2808, allocations: 86.5 kB / 407 MB, free: 28.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.2809, allocations: 44.84 kB / 407 MB, free: 28.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.233e-05/0.2809, allocations: 1.812 kB / 407 MB, free: 28.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.893e-05/0.281, allocations: 34.56 kB / 407.1 MB, free: 28.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.281, allocations: 0 / 407.1 MB, free: 28.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004264/0.2814, allocations: 121.5 kB / 407.2 MB, free: 28.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.2815, allocations: 60.02 kB / 407.3 MB, free: 28.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.114e-05/0.2815, allocations: 105.9 kB / 407.4 MB, free: 28.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.526e-06/0.2815, allocations: 25.7 kB / 407.4 MB, free: 28.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.499e-05/0.2816, allocations: 88.12 kB / 407.5 MB, free: 28.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.321e-05/0.2816, allocations: 0 / 407.5 MB, free: 28.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-06/0.2816, allocations: 0 / 407.5 MB, free: 28.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.821e-05/0.2817, allocations: 326.7 kB / 407.8 MB, free: 27.9 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.238e-05/0.2817, allocations: 4 kB / 407.8 MB, free: 27.9 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.308e-05/0.2817, allocations: 35.42 kB / 407.8 MB, free: 27.85 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.6e-05/0.2817, allocations: 39.38 kB / 407.9 MB, free: 27.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2818, allocations: 0 / 407.9 MB, free: 27.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.624e-05/0.2818, allocations: 69.62 kB / 407.9 MB, free: 27.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.2818, allocations: 4 kB / 407.9 MB, free: 27.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.2819, allocations: 8 kB / 407.9 MB, free: 27.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.2819, allocations: 4.188 kB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.737e-05/0.282, allocations: 8 kB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.282, allocations: 4 kB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.926e-05/0.282, allocations: 3.984 kB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.22e-06/0.282, allocations: 7.938 kB / 408 MB, free: 27.69 MB / 298.7 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 (ramp.counter,$CLKPRE.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 6.521e-05/0.2821, allocations: 117.8 kB / 408.1 MB, free: 27.56 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002349/0.2823, allocations: 89.67 kB / 408.2 MB, free: 27.47 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.483e-05/0.2823, allocations: 15.84 kB / 408.2 MB, free: 27.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.2824, allocations: 0 / 408.2 MB, free: 27.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2824, allocations: 3.984 kB / 408.2 MB, free: 27.44 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.2824, allocations: 0 / 408.2 MB, free: 27.44 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.136e-05/0.2824, allocations: 157.7 kB / 408.3 MB, free: 27.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2824, allocations: 0 / 408.3 MB, free: 27.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.372e-05/0.2825, allocations: 15.98 kB / 408.4 MB, free: 27.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.2825, allocations: 0 / 408.4 MB, free: 27.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.2825, allocations: 3.938 kB / 408.4 MB, free: 27.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.2825, allocations: 0 / 408.4 MB, free: 27.22 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2826, allocations: 11.94 kB / 408.4 MB, free: 27.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002433/0.2828, allocations: 117 kB / 408.5 MB, free: 27.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.717e-05/0.2828, allocations: 77.11 kB / 408.6 MB, free: 26.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.2828, allocations: 7.938 kB / 408.6 MB, free: 26.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.874e-05/0.2829, allocations: 7.984 kB / 408.6 MB, free: 26.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.535e-06/0.2829, allocations: 0 / 408.6 MB, free: 26.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.2829, allocations: 7.984 kB / 408.6 MB, free: 26.96 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.401e-05/0.283, allocations: 91.22 kB / 408.7 MB, free: 26.87 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.283, allocations: 0 / 408.7 MB, free: 26.87 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001646/0.2831, allocations: 4 kB / 408.7 MB, free: 26.86 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 8.716e-05/0.2832, allocations: 107.2 kB / 408.8 MB, free: 26.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001758/0.2834, allocations: 43.89 kB / 408.8 MB, free: 26.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2834, allocations: 0 / 408.8 MB, free: 26.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.91e-07/0.2834, allocations: 0 / 408.8 MB, free: 26.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004106/0.2838, allocations: 49.62 kB / 408.9 MB, free: 26.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002786/0.2841, allocations: 144.5 kB / 409 MB, free: 26.49 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.196e-05/0.2842, allocations: 0.6809 MB / 409.7 MB, free: 25.79 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.691e-05/0.2843, allocations: 0 / 409.7 MB, free: 25.79 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.249e-05/0.2843, allocations: 15.42 kB / 409.7 MB, free: 25.77 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2843, allocations: 0 / 409.7 MB, free: 25.77 MB / 298.7 MB Notification: Performance of Templates: time 0.001945/0.2862, allocations: 497.3 kB / 410.2 MB, free: 25.29 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches