Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 115.8 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 214.1 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.455/1.455, allocations: 230.6 MB / 257.5 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002174/0.002174, allocations: 47.92 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.258, allocations: 53.36 MB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.002908/0.2609, allocations: 1.497 MB / 432.6 MB, free: 5.348 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002656/0.2612, allocations: 35.84 kB / 432.7 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.502e-05/0.2613, allocations: 0 / 432.7 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.723e-05/0.2613, allocations: 3.938 kB / 432.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.961e-05/0.2614, allocations: 3.938 kB / 432.7 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000308/0.2617, allocations: 27.97 kB / 432.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001174/0.2618, allocations: 43.84 kB / 432.8 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.2619, allocations: 4 kB / 432.8 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.319e-05/0.262, allocations: 19.97 kB / 432.8 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.088e-05/0.262, allocations: 19.92 kB / 432.8 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.26e-05/0.2621, allocations: 4 kB / 432.8 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.292e-05/0.2621, allocations: 4 kB / 432.8 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.308e-05/0.2622, allocations: 11.94 kB / 432.8 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.677e-05/0.2622, allocations: 11.92 kB / 432.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001376/0.2623, allocations: 47.19 kB / 432.9 MB, free: 5.117 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.2623, allocations: 4 kB / 432.9 MB, free: 5.113 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.2623, allocations: 0 / 432.9 MB, free: 5.113 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.2624, allocations: 0 / 432.9 MB, free: 5.113 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.0005718/0.2629, allocations: 271.3 kB / 433.1 MB, free: 4.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.263, allocations: 12.03 kB / 433.2 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.624e-05/0.263, allocations: 38.75 kB / 433.2 MB, free: 4.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.74e-05/0.263, allocations: 8.828 kB / 433.2 MB, free: 4.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003234/0.2634, allocations: 130.4 kB / 433.3 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.718e-05/0.2634, allocations: 4.359 kB / 433.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.2634, allocations: 4.375 kB / 433.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005821/0.264, allocations: 155.8 kB / 433.5 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.247e-05/0.264, allocations: 7.875 kB / 433.5 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.481e-05/0.264, allocations: 0 / 433.5 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.2641, allocations: 0 / 433.5 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002928/0.2643, allocations: 47.94 kB / 433.5 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000174/0.2645, allocations: 132.7 kB / 433.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.2648, allocations: 78.55 kB / 433.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/0.265, allocations: 40.86 kB / 433.8 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.306e-05/0.265, allocations: 7.938 kB / 433.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.2651, allocations: 34.5 kB / 433.8 MB, free: 4.02 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.012e-06/0.2651, allocations: 0 / 433.8 MB, free: 4.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005033/0.2656, allocations: 113.5 kB / 433.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.668e-05/0.2656, allocations: 59.41 kB / 434 MB, free: 3.832 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.2657, allocations: 105.8 kB / 434.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.2658, allocations: 25.7 kB / 434.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.081e-05/0.2658, allocations: 84.14 kB / 434.2 MB, free: 3.602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.559e-05/0.2658, allocations: 15.94 kB / 434.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.502e-05/0.2659, allocations: 9.719 kB / 434.2 MB, free: 3.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.2661, allocations: 318.8 kB / 434.5 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.516e-05/0.2661, allocations: 4 kB / 434.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.181e-05/0.2661, allocations: 35.36 kB / 434.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.587e-05/0.2662, allocations: 35.44 kB / 434.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2662, allocations: 0 / 434.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000101/0.2663, allocations: 65.56 kB / 434.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.2663, allocations: 7.938 kB / 434.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2663, allocations: 320 / 434.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.2663, allocations: 8 kB / 434.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.845e-05/0.2664, allocations: 4 kB / 434.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.2664, allocations: 4 kB / 434.7 MB, free: 3.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.273e-05/0.2664, allocations: 7.969 kB / 434.7 MB, free: 3.051 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-06/0.2664, allocations: 4 kB / 434.7 MB, free: 3.047 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 9.622e-05/0.2665, allocations: 117.9 kB / 434.8 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003065/0.2668, allocations: 93.53 kB / 434.9 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.132e-05/0.2669, allocations: 4 kB / 434.9 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.2669, allocations: 4 kB / 434.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.2669, allocations: 3.984 kB / 434.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.2669, allocations: 0 / 434.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000113/0.267, allocations: 136.7 kB / 435.1 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.267, allocations: 7.875 kB / 435.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.463e-05/0.2671, allocations: 11.98 kB / 435.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.2671, allocations: 3.938 kB / 435.1 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.044e-06/0.2671, allocations: 0 / 435.1 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.2671, allocations: 4 kB / 435.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2671, allocations: 0 / 435.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003159/0.2674, allocations: 121 kB / 435.2 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.777e-06/0.2674, allocations: 4 kB / 435.2 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.2674, allocations: 3.938 kB / 435.2 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.518e-05/0.2675, allocations: 7.984 kB / 435.2 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.715e-06/0.2675, allocations: 4 kB / 435.2 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.611e-06/0.2675, allocations: 0 / 435.2 MB, free: 2.445 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001041/0.2676, allocations: 91.56 kB / 435.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.2676, allocations: 0 / 435.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001877/0.2678, allocations: 4 kB / 435.3 MB, free: 2.352 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.0008982/0.2687, allocations: 0.6943 MB / 436 MB, free: 1.629 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002145/0.2689, allocations: 35.95 kB / 436.1 MB, free: 1.594 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2689, allocations: 0 / 436.1 MB, free: 1.594 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.2689, allocations: 4.312 kB / 436.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.2693, allocations: 43.94 kB / 436.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001429/0.2707, allocations: 1.189 MB / 437.3 MB, free: 264 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/0.2711, allocations: 0.6885 MB / 438 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.048e-05/0.2711, allocations: 3.984 kB / 438 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.352e-05/0.2712, allocations: 15.44 kB / 438 MB, free: 15.52 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2712, allocations: 3.938 kB / 438 MB, free: 15.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03048/0.3017, allocations: 1.639 MB / 439.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.34, allocations: 7.938 kB / 439.6 MB, free: 14.02 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.849055554001097]