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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001742/0.001742, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002353/0.002353, allocations: 195.1 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 51.92 kB / 370.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2453, allocations: 52.18 MB / 422.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.002787/0.2481, allocations: 1.47 MB / 424.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001971/0.2483, allocations: 35.84 kB / 424.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.266e-05/0.2484, allocations: 4 kB / 424.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.22e-05/0.2484, allocations: 3.938 kB / 424.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.748e-05/0.2484, allocations: 3.938 kB / 424.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002599/0.2487, allocations: 19.98 kB / 424.1 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.622e-05/0.2488, allocations: 43.91 kB / 424.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.452e-05/0.2489, allocations: 7.984 kB / 424.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.838e-05/0.2489, allocations: 19.92 kB / 424.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.782e-05/0.249, allocations: 15.92 kB / 424.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.076e-05/0.249, allocations: 4 kB / 424.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.214e-05/0.249, allocations: 4 kB / 424.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.898e-05/0.249, allocations: 7.938 kB / 424.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.45e-05/0.2491, allocations: 15.92 kB / 424.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.442e-05/0.2491, allocations: 39.25 kB / 424.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2492, allocations: 0 / 424.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2492, allocations: 4 kB / 424.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.429e-06/0.2492, allocations: 0 / 424.3 MB, free: 12.66 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.0004725/0.2496, allocations: 287.2 kB / 424.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.2497, allocations: 8.031 kB / 424.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.79e-05/0.2497, allocations: 30.75 kB / 424.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.416e-05/0.2497, allocations: 4.938 kB / 424.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002013/0.2499, allocations: 134.3 kB / 424.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.2499, allocations: 384 / 424.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.421e-05/0.25, allocations: 12.31 kB / 424.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005383/0.2505, allocations: 167.8 kB / 424.9 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.2505, allocations: 7.938 kB / 424.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.015e-06/0.2505, allocations: 3.938 kB / 424.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.2505, allocations: 0 / 424.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002396/0.2508, allocations: 43.94 kB / 425 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001373/0.2509, allocations: 128.8 kB / 425.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003108/0.2512, allocations: 78.52 kB / 425.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.2514, allocations: 40.89 kB / 425.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.013e-06/0.2514, allocations: 0 / 425.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.2514, allocations: 38.56 kB / 425.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.52e-07/0.2514, allocations: 0 / 425.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004764/0.2519, allocations: 121.4 kB / 425.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.409e-05/0.2519, allocations: 55.41 kB / 425.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.456e-05/0.252, allocations: 105.8 kB / 425.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.252, allocations: 25.7 kB / 425.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.499e-05/0.2521, allocations: 84.14 kB / 425.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.56e-05/0.2521, allocations: 7.984 kB / 425.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-05/0.2521, allocations: 13.72 kB / 425.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.2522, allocations: 314.8 kB / 426 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.317e-05/0.2523, allocations: 4 kB / 426 MB, free: 10.78 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.715e-05/0.2523, allocations: 43.36 kB / 426 MB, free: 10.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.605e-05/0.2523, allocations: 35.38 kB / 426 MB, free: 10.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2523, allocations: 0 / 426 MB, free: 10.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.23e-05/0.2524, allocations: 69.52 kB / 426.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.2524, allocations: 7.938 kB / 426.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.2524, allocations: 128 / 426.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.2525, allocations: 8 kB / 426.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.444e-05/0.2525, allocations: 4 kB / 426.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.2525, allocations: 4 kB / 426.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.83e-05/0.2525, allocations: 0 / 426.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-06/0.2525, allocations: 4 kB / 426.1 MB, free: 10.58 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 8.455e-05/0.2526, allocations: 121.8 kB / 426.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002729/0.2529, allocations: 85.58 kB / 426.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.472e-05/0.2529, allocations: 4 kB / 426.3 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.2529, allocations: 240 / 426.3 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2529, allocations: 0 / 426.3 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.2529, allocations: 11.97 kB / 426.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.418e-05/0.253, allocations: 132.7 kB / 426.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.253, allocations: 0 / 426.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.932e-05/0.2531, allocations: 11.98 kB / 426.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.2531, allocations: 3.938 kB / 426.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.2531, allocations: 12.06 kB / 426.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.2531, allocations: 4 kB / 426.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2531, allocations: 0 / 426.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002974/0.2534, allocations: 113 kB / 426.6 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.045e-05/0.2534, allocations: 7.953 kB / 426.6 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.2535, allocations: 7.938 kB / 426.6 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.383e-05/0.2535, allocations: 11.98 kB / 426.6 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.891e-06/0.2535, allocations: 0 / 426.6 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.2535, allocations: 0 / 426.6 MB, free: 9.977 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.029e-05/0.2536, allocations: 91.27 kB / 426.7 MB, free: 9.887 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2536, allocations: 0 / 426.7 MB, free: 9.887 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001801/0.2538, allocations: 4 kB / 426.7 MB, free: 9.883 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.0007463/0.2545, allocations: 0.6826 MB / 427.4 MB, free: 9.172 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000192/0.2547, allocations: 44.2 kB / 427.5 MB, free: 9.129 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2547, allocations: 4.062 kB / 427.5 MB, free: 9.125 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.2547, allocations: 0 / 427.5 MB, free: 9.125 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003481/0.2551, allocations: 43.92 kB / 427.5 MB, free: 9.082 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.2562, allocations: 1.189 MB / 428.7 MB, free: 7.793 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.693e-05/0.2562, allocations: 71.2 kB / 428.8 MB, free: 7.703 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.096e-05/0.2563, allocations: 3.984 kB / 428.8 MB, free: 7.699 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.342e-05/0.2563, allocations: 15.44 kB / 428.8 MB, free: 7.684 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2563, allocations: 4 kB / 428.8 MB, free: 7.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02729/0.2836, allocations: 2.043 MB / 430.8 MB, free: 5.789 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.33, allocations: 8 kB / 430.8 MB, free: 5.781 MB / 334.1 MB " [Timeout remaining time 649] (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.000199561 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) [Timeout 52.5] 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) [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: 13.775145100895315]