Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001279/0.001284, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001604/0.001604, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.3376, allocations: 50.53 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.00273/0.3404, allocations: 1.48 MB / 410.2 MB, free: 60 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001949/0.3406, allocations: 35.84 kB / 410.3 MB, free: 24 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.879e-05/0.3406, allocations: 0 / 410.3 MB, free: 24 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.185e-05/0.3407, allocations: 3.938 kB / 410.3 MB, free: 20 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.153e-05/0.3407, allocations: 3.938 kB / 410.3 MB, free: 16 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002705/0.341, allocations: 24.02 kB / 410.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.478e-05/0.3411, allocations: 39.86 kB / 410.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.3412, allocations: 12 kB / 410.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.407e-05/0.3413, allocations: 15.92 kB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.436e-05/0.3413, allocations: 15.92 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.918e-05/0.3414, allocations: 4 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.194e-05/0.3414, allocations: 4 kB / 410.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.757e-05/0.3414, allocations: 19.91 kB / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.137e-05/0.3415, allocations: 11.94 kB / 410.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001044/0.3416, allocations: 35.83 kB / 410.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3416, allocations: 0 / 410.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.3416, allocations: 7.984 kB / 410.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.3416, allocations: 0 / 410.5 MB, free: 15.83 MB / 334.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.0005266/0.3421, allocations: 358.4 kB / 410.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.3422, allocations: 8.031 kB / 410.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.553e-05/0.3422, allocations: 34.69 kB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.925e-05/0.3423, allocations: 8.891 kB / 410.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002389/0.3425, allocations: 184.2 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.3425, allocations: 4.375 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.248e-05/0.3426, allocations: 4.312 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005437/0.3431, allocations: 167.7 kB / 411.2 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.3431, allocations: 3.938 kB / 411.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.3431, allocations: 4 kB / 411.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.3431, allocations: 0 / 411.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000232/0.3434, allocations: 47.94 kB / 411.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001486/0.3435, allocations: 161.7 kB / 411.4 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002957/0.3438, allocations: 78.52 kB / 411.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.344, allocations: 40.91 kB / 411.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.344, allocations: 11.91 kB / 411.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.144e-05/0.344, allocations: 30.56 kB / 411.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.344, allocations: 4 kB / 411.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004558/0.3445, allocations: 109.5 kB / 411.7 MB, free: 14.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/0.3446, allocations: 63.34 kB / 411.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.906e-05/0.3446, allocations: 109.8 kB / 411.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.299e-05/0.3447, allocations: 25.7 kB / 411.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.775e-05/0.3447, allocations: 84.14 kB / 412 MB, free: 14.1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.523e-05/0.3447, allocations: 11.94 kB / 412 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.703e-05/0.3448, allocations: 13.72 kB / 412 MB, free: 14.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.3449, allocations: 314.8 kB / 412.3 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.577e-05/0.3449, allocations: 7.938 kB / 412.3 MB, free: 13.74 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.011e-05/0.3449, allocations: 35.42 kB / 412.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.362e-05/0.345, allocations: 35.38 kB / 412.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.345, allocations: 0 / 412.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.322e-05/0.3451, allocations: 65.69 kB / 412.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.3451, allocations: 7.938 kB / 412.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.3451, allocations: 0 / 412.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.3451, allocations: 4 kB / 412.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.863e-05/0.3452, allocations: 8 kB / 412.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.3452, allocations: 0 / 412.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.841e-05/0.3452, allocations: 0 / 412.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.3452, allocations: 4.125 kB / 412.5 MB, free: 13.55 MB / 334.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 7.905e-05/0.3453, allocations: 125.8 kB / 412.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003275/0.3456, allocations: 93.59 kB / 412.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.042e-05/0.3457, allocations: 7.906 kB / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.3457, allocations: 0 / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3457, allocations: 0 / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.3457, allocations: 0 / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.984e-05/0.3458, allocations: 165.6 kB / 412.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3458, allocations: 0 / 412.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.987e-05/0.3459, allocations: 11.98 kB / 412.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/0.3459, allocations: 3.938 kB / 412.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.3459, allocations: 3.938 kB / 412.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.346, allocations: 7.938 kB / 412.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.346, allocations: 4 kB / 412.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002809/0.3462, allocations: 117 kB / 413 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.334e-05/0.3463, allocations: 81.11 kB / 413.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.692e-05/0.3463, allocations: 3.938 kB / 413.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.27e-05/0.3464, allocations: 7.984 kB / 413.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.665e-06/0.3464, allocations: 0 / 413.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.684e-06/0.3464, allocations: 8 kB / 413.1 MB, free: 12.81 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.373e-05/0.3465, allocations: 87.27 kB / 413.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3465, allocations: 0 / 413.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001833/0.3467, allocations: 4 kB / 413.2 MB, free: 12.72 MB / 334.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.0007256/0.3474, allocations: 0.6907 MB / 413.9 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000198/0.3476, allocations: 40.2 kB / 413.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3476, allocations: 8 kB / 413.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.3476, allocations: 0 / 413.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.348, allocations: 36.11 kB / 414 MB, free: 11.92 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.3491, allocations: 1.196 MB / 415.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002622/0.3493, allocations: 0.6807 MB / 415.8 MB, free: 9.922 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.789e-05/0.3494, allocations: 7.984 kB / 415.9 MB, free: 9.914 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.336e-05/0.3494, allocations: 11.44 kB / 415.9 MB, free: 9.902 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3494, allocations: 0 / 415.9 MB, free: 9.902 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01689/0.3663, allocations: 1.496 MB / 417.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.604/7.971, allocations: 7.875 kB / 417.4 MB, free: 8.516 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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