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.001116/0.001116, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.001301, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 64.08 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2651, allocations: 50.54 MB / 408.8 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.003087/0.2682, allocations: 1.479 MB / 410.2 MB, free: 200 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002508/0.2685, allocations: 35.84 kB / 410.3 MB, free: 164 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.316e-05/0.2686, allocations: 4 kB / 410.3 MB, free: 160 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.946e-05/0.2687, allocations: 3.938 kB / 410.3 MB, free: 156 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.426e-05/0.2687, allocations: 3.938 kB / 410.3 MB, free: 152 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003263/0.2691, allocations: 27.47 kB / 410.3 MB, free: 128 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001177/0.2692, allocations: 35.91 kB / 410.3 MB, free: 92 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.2693, allocations: 16 kB / 410.4 MB, free: 76 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.705e-05/0.2694, allocations: 15.92 kB / 410.4 MB, free: 60 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.198e-05/0.2695, allocations: 19.91 kB / 410.4 MB, free: 40 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.49e-05/0.2695, allocations: 4 kB / 410.4 MB, free: 36 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.127e-05/0.2695, allocations: 4 kB / 410.4 MB, free: 32 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.04e-05/0.2696, allocations: 7.938 kB / 410.4 MB, free: 24 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.6e-05/0.2696, allocations: 19.92 kB / 410.4 MB, free: 4 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001439/0.2698, allocations: 35.83 kB / 410.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2698, allocations: 0 / 410.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2698, allocations: 0 / 410.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.2698, allocations: 0 / 410.5 MB, free: 15.97 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.0005854/0.2704, allocations: 358.4 kB / 410.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.2705, allocations: 16.02 kB / 410.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.564e-05/0.2705, allocations: 34.75 kB / 410.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.567e-05/0.2706, allocations: 8.891 kB / 410.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002805/0.2709, allocations: 184.2 kB / 411.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.2709, allocations: 4.375 kB / 411.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.079e-05/0.2709, allocations: 384 / 411.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005959/0.2715, allocations: 159.8 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.2715, allocations: 3.938 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.2716, allocations: 3.984 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.2716, allocations: 3.938 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002803/0.2719, allocations: 51.89 kB / 411.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001598/0.272, allocations: 165.6 kB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003287/0.2724, allocations: 82.52 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.2725, allocations: 40.91 kB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.626e-06/0.2725, allocations: 0 / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.2726, allocations: 30.56 kB / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.2726, allocations: 0 / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005188/0.2731, allocations: 125.6 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/0.2732, allocations: 63.34 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.993e-05/0.2733, allocations: 105.8 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.2733, allocations: 29.7 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.202e-05/0.2733, allocations: 80.14 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.041e-05/0.2734, allocations: 7.953 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.55e-05/0.2734, allocations: 17.7 kB / 412 MB, free: 14.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.2735, allocations: 318.8 kB / 412.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.784e-05/0.2736, allocations: 4 kB / 412.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.404e-05/0.2736, allocations: 35.42 kB / 412.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.027e-05/0.2737, allocations: 35.38 kB / 412.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.2737, allocations: 0 / 412.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001071/0.2738, allocations: 65.56 kB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.2738, allocations: 12.06 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.2738, allocations: 0 / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.2738, allocations: 4 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.129e-05/0.2739, allocations: 4 kB / 412.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.2739, allocations: 4 kB / 412.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.548e-05/0.274, allocations: 0 / 412.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.274, allocations: 4 kB / 412.5 MB, free: 13.68 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 0.0001229/0.2741, allocations: 113.8 kB / 412.6 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000321/0.2744, allocations: 101.5 kB / 412.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.284e-05/0.2745, allocations: 11.91 kB / 412.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.2745, allocations: 0 / 412.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.2745, allocations: 0 / 412.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.2745, allocations: 0 / 412.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001385/0.2747, allocations: 157.7 kB / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.2747, allocations: 4 kB / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.2748, allocations: 15.97 kB / 412.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.2748, allocations: 3.938 kB / 412.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.2748, allocations: 0 / 412.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.798e-06/0.2748, allocations: 0 / 412.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.2748, allocations: 7.938 kB / 412.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003534/0.2752, allocations: 121 kB / 413 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.828e-05/0.2753, allocations: 85.05 kB / 413.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.445e-05/0.2753, allocations: 8.062 kB / 413.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.153e-05/0.2754, allocations: 7.984 kB / 413.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.418e-06/0.2754, allocations: 0 / 413.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-06/0.2754, allocations: 4 kB / 413.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.126e-05/0.2755, allocations: 87.27 kB / 413.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2755, allocations: 4 kB / 413.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001973/0.2757, allocations: 4 kB / 413.2 MB, free: 12.85 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.0008128/0.2765, allocations: 0.6826 MB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002221/0.2767, allocations: 43.91 kB / 413.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.2767, allocations: 4.312 kB / 413.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.032e-06/0.2767, allocations: 0 / 413.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003954/0.2771, allocations: 43.92 kB / 414 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.2783, allocations: 1.186 MB / 415.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.2786, allocations: 0.6846 MB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.745e-05/0.2786, allocations: 0 / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.48e-05/0.2787, allocations: 19.42 kB / 415.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2787, allocations: 0 / 415.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01914/0.2978, allocations: 1.496 MB / 417.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.591/7.888, allocations: 5.062 kB / 417.4 MB, free: 8.645 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