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.001594/0.001595, allocations: 113.9 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.00137/0.00137, allocations: 197.3 kB / 18 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.415/1.415, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 39.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2531, allocations: 49.44 MB / 400.3 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.002774/0.2559, allocations: 1.462 MB / 401.7 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002179/0.2562, allocations: 34.81 kB / 401.7 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.783e-05/0.2563, allocations: 1.375 kB / 401.7 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.275e-05/0.2563, allocations: 3.938 kB / 401.8 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.04e-05/0.2564, allocations: 3.938 kB / 401.8 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002947/0.2567, allocations: 30.02 kB / 401.8 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001012/0.2568, allocations: 35.02 kB / 401.8 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.2569, allocations: 13.2 kB / 401.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.954e-05/0.257, allocations: 17.56 kB / 401.8 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.468e-05/0.2571, allocations: 27.77 kB / 401.9 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.43e-05/0.2571, allocations: 3.844 kB / 401.9 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.268e-05/0.2571, allocations: 4.062 kB / 401.9 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.469e-05/0.2571, allocations: 9.156 kB / 401.9 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.252e-05/0.2572, allocations: 15.7 kB / 401.9 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001146/0.2573, allocations: 39.88 kB / 401.9 MB, free: 7.086 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.2573, allocations: 0 / 401.9 MB, free: 7.086 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2573, allocations: 0 / 401.9 MB, free: 7.086 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.2573, allocations: 0 / 401.9 MB, free: 7.086 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.0005887/0.2579, allocations: 365.2 kB / 402.3 MB, free: 6.691 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.258, allocations: 8.031 kB / 402.3 MB, free: 6.684 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.75e-05/0.258, allocations: 30.75 kB / 402.3 MB, free: 6.645 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.38e-05/0.2581, allocations: 4.938 kB / 402.3 MB, free: 6.641 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002507/0.2583, allocations: 192.2 kB / 402.5 MB, free: 6.414 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.194e-05/0.2584, allocations: 384 / 402.5 MB, free: 6.414 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.25e-05/0.2584, allocations: 384 / 402.5 MB, free: 6.414 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005841/0.259, allocations: 159.8 kB / 402.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.259, allocations: 3.938 kB / 402.7 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.106e-06/0.259, allocations: 0 / 402.7 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.259, allocations: 4 kB / 402.7 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002655/0.2593, allocations: 47.88 kB / 402.7 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001716/0.2595, allocations: 165.7 kB / 402.9 MB, free: 5.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003418/0.2598, allocations: 90.52 kB / 403 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.26, allocations: 36.88 kB / 403 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/0.26, allocations: 0 / 403 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.26, allocations: 38.56 kB / 403.1 MB, free: 5.797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.26, allocations: 0 / 403.1 MB, free: 5.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005301/0.2606, allocations: 117.4 kB / 403.2 MB, free: 5.676 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.358e-05/0.2607, allocations: 63.33 kB / 403.2 MB, free: 5.602 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.886e-05/0.2607, allocations: 102.1 kB / 403.3 MB, free: 5.492 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.2608, allocations: 33.64 kB / 403.4 MB, free: 5.453 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.791e-05/0.2608, allocations: 92.12 kB / 403.5 MB, free: 5.359 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.172e-05/0.2608, allocations: 0 / 403.5 MB, free: 5.359 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.553e-05/0.2609, allocations: 17.72 kB / 403.5 MB, free: 5.336 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.261, allocations: 310.8 kB / 403.8 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.916e-05/0.2611, allocations: 11.98 kB / 403.8 MB, free: 5.012 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.104e-05/0.2611, allocations: 23.44 kB / 403.8 MB, free: 4.977 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.141e-05/0.2611, allocations: 43.38 kB / 403.9 MB, free: 4.922 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2612, allocations: 0 / 403.9 MB, free: 4.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.448e-05/0.2613, allocations: 65.52 kB / 403.9 MB, free: 4.852 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.2613, allocations: 14.72 kB / 403.9 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2613, allocations: 4 kB / 403.9 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.2613, allocations: 0 / 403.9 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.78e-05/0.2614, allocations: 11.98 kB / 404 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/0.2614, allocations: 4.062 kB / 404 MB, free: 4.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.842e-05/0.2614, allocations: 0 / 404 MB, free: 4.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-06/0.2614, allocations: 4 kB / 404 MB, free: 4.816 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 9.327e-05/0.2615, allocations: 113.8 kB / 404.1 MB, free: 4.695 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003075/0.2618, allocations: 89.52 kB / 404.2 MB, free: 4.602 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.09e-05/0.2619, allocations: 15.89 kB / 404.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.2619, allocations: 0 / 404.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.2619, allocations: 4 kB / 404.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.2619, allocations: 0 / 404.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001203/0.262, allocations: 161.6 kB / 404.3 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.262, allocations: 0 / 404.3 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.2621, allocations: 11.98 kB / 404.4 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.2622, allocations: 3.938 kB / 404.4 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.2622, allocations: 4 kB / 404.4 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.2622, allocations: 0 / 404.4 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.2622, allocations: 7.922 kB / 404.4 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003262/0.2625, allocations: 117 kB / 404.5 MB, free: 4.207 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.8e-05/0.2626, allocations: 81.06 kB / 404.6 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.2626, allocations: 16.05 kB / 404.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.191e-05/0.2627, allocations: 7.984 kB / 404.6 MB, free: 4.086 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.224e-06/0.2627, allocations: 4 kB / 404.6 MB, free: 4.082 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-06/0.2627, allocations: 0 / 404.6 MB, free: 4.082 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.6e-05/0.2628, allocations: 83.28 kB / 404.7 MB, free: 4 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2628, allocations: 0 / 404.7 MB, free: 4 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001826/0.2629, allocations: 8 kB / 404.7 MB, free: 3.992 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.0008061/0.2638, allocations: 0.6868 MB / 405.4 MB, free: 3.277 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002123/0.264, allocations: 51.83 kB / 405.4 MB, free: 3.227 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.264, allocations: 320 / 405.4 MB, free: 3.227 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.41e-07/0.264, allocations: 4 kB / 405.4 MB, free: 3.223 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003643/0.2644, allocations: 43.92 kB / 405.5 MB, free: 3.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.2655, allocations: 1.193 MB / 406.7 MB, free: 1.887 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002969/0.2658, allocations: 0.6922 MB / 407.4 MB, free: 1.168 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.088e-05/0.2659, allocations: 0 / 407.4 MB, free: 1.168 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.202e-05/0.2659, allocations: 15.44 kB / 407.4 MB, free: 1.152 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2659, allocations: 0 / 407.4 MB, free: 1.152 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02149/0.2874, allocations: 1.486 MB / 408.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.731/8.018, allocations: 4.688 kB / 408.9 MB, free: 15.78 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