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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008848/0.0008848, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009024/0.0009024, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9032/0.9032, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.151e-05/1.282e-05, allocations: 2.844 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.001693/0.001706, allocations: 1.486 MB / 326 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001682/0.001874, allocations: 35.84 kB / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.033e-05/0.001935, allocations: 0 / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.226e-05/0.001967, allocations: 3.938 kB / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.639e-05/0.002003, allocations: 0 / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002474/0.002251, allocations: 35.19 kB / 326.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.508e-05/0.002336, allocations: 43.86 kB / 326.1 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.55e-05/0.002431, allocations: 11.94 kB / 326.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.266e-05/0.002494, allocations: 15.98 kB / 326.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.218e-05/0.002536, allocations: 27.95 kB / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.676e-05/0.002563, allocations: 4 kB / 326.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.173e-06/0.00257, allocations: 0 / 326.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.833e-05/0.002588, allocations: 7.938 kB / 326.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.891e-05/0.002617, allocations: 8 kB / 326.2 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.774e-05/0.002715, allocations: 47.8 kB / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.853e-06/0.002717, allocations: 0 / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.002718, allocations: 0 / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.002722, allocations: 0 / 326.3 MB, free: 14.14 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.0004019/0.003123, allocations: 278.3 kB / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.003164, allocations: 19.98 kB / 326.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.93e-05/0.003194, allocations: 34.73 kB / 326.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.324e-05/0.003217, allocations: 12.89 kB / 326.6 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001647/0.003382, allocations: 113.7 kB / 326.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.455e-05/0.003406, allocations: 8.375 kB / 326.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.307e-06/0.003416, allocations: 384 / 326.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003684/0.003784, allocations: 159.7 kB / 326.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.003792, allocations: 192 / 326.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.338e-06/0.003801, allocations: 4.375 kB / 326.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.003808, allocations: 8.062 kB / 326.9 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000129/0.003937, allocations: 51.94 kB / 326.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001025/0.00404, allocations: 124.8 kB / 327.1 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00017/0.00421, allocations: 82.44 kB / 327.1 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.821e-05/0.004288, allocations: 40.91 kB / 327.2 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.112e-05/0.004299, allocations: 0 / 327.2 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.039e-05/0.004319, allocations: 30.56 kB / 327.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 7.61e-07/0.00432, allocations: 0 / 327.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003089/0.004629, allocations: 113.5 kB / 327.3 MB, free: 12.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.566e-05/0.004695, allocations: 71.33 kB / 327.4 MB, free: 12.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.835e-05/0.004773, allocations: 109.8 kB / 327.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.004785, allocations: 25.7 kB / 327.5 MB, free: 12.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.405e-05/0.004829, allocations: 88.12 kB / 327.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.582e-05/0.004845, allocations: 3.953 kB / 327.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.374e-05/0.004869, allocations: 13.72 kB / 327.6 MB, free: 12.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.858e-05/0.004967, allocations: 310.8 kB / 327.9 MB, free: 12.28 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.152e-05/0.004979, allocations: 8 kB / 327.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.452e-06/0.004985, allocations: 0 / 327.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.652e-05/0.005012, allocations: 12.84 kB / 327.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.005014, allocations: 4.062 kB / 327.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.787e-05/0.005062, allocations: 49.64 kB / 328 MB, free: 12.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.005075, allocations: 4 kB / 328 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.00508, allocations: 0 / 328 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.005094, allocations: 0 / 328 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.919e-05/0.005154, allocations: 7.938 kB / 328 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.005161, allocations: 0 / 328 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.909e-06/0.005171, allocations: 0 / 328 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.999e-06/0.005176, allocations: 0 / 328 MB, free: 12.18 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 2 * 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.591e-05/0.005252, allocations: 121.8 kB / 328.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.005388, allocations: 89.81 kB / 328.2 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.457e-05/0.005423, allocations: 11.98 kB / 328.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.005428, allocations: 7.984 kB / 328.2 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.005435, allocations: 3.938 kB / 328.2 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.005439, allocations: 0 / 328.2 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.064e-05/0.00551, allocations: 124.7 kB / 328.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.005511, allocations: 0 / 328.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.028e-05/0.005561, allocations: 23.97 kB / 328.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.005562, allocations: 0 / 328.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.00557, allocations: 0 / 328.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.005571, allocations: 0 / 328.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.005573, allocations: 7.938 kB / 328.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000161/0.005734, allocations: 109.1 kB / 328.5 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.17e-05/0.005745, allocations: 11.89 kB / 328.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.005761, allocations: 4 kB / 328.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.68e-05/0.005787, allocations: 7.984 kB / 328.5 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-06/0.005792, allocations: 3.938 kB / 328.5 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.005798, allocations: 4 kB / 328.5 MB, free: 11.58 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.789e-05/0.005836, allocations: 87.27 kB / 328.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005836, allocations: 0 / 328.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001182/0.005954, allocations: 4 kB / 328.6 MB, free: 11.49 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 0.0004281/0.006382, allocations: 0.6788 MB / 329.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001186/0.006501, allocations: 31.97 kB / 329.3 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.006502, allocations: 3.938 kB / 329.3 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-07/0.006503, allocations: 0 / 329.3 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/0.006758, allocations: 54.53 kB / 329.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.00781, allocations: 1.122 MB / 330.5 MB, free: 9.492 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.202e-05/0.007852, allocations: 71.28 kB / 330.6 MB, free: 9.402 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.17e-05/0.007873, allocations: 4.156 kB / 330.6 MB, free: 9.398 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.254e-05/0.007916, allocations: 16.48 kB / 330.6 MB, free: 9.383 MB / 298.7 MB Notification: Performance of SimCode: time 7.82e-07/0.007917, allocations: 0 / 330.6 MB, free: 9.383 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01458/0.02249, allocations: 2.146 MB / 332.7 MB, free: 7.34 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.708/6.731, allocations: 6.562 kB / 332.7 MB, free: 7.336 MB / 298.7 MB " [Timeout remaining time 653] (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.000199561 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,ramp.y,periodicClock1.period,ramp.height [Calling sys.exit(0), Time elapsed: 8.518586874939501]