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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001528/0.001528, allocations: 110.4 kB / 16.92 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001633/0.001633, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.516/1.516, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 45.88 kB / 300.7 MB, free: 5.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.13, allocations: 49.44 MB / 350.2 MB, free: 4.254 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.003156/0.1332, allocations: 1.445 MB / 351.6 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002246/0.1335, allocations: 39.91 kB / 351.7 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.289e-05/0.1336, allocations: 0 / 351.7 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.506e-05/0.1337, allocations: 7.922 kB / 351.7 MB, free: 2.742 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.86e-05/0.1337, allocations: 3.938 kB / 351.7 MB, free: 2.738 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002613/0.134, allocations: 23.92 kB / 351.7 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.432e-05/0.1341, allocations: 39.91 kB / 351.7 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.1342, allocations: 7.984 kB / 351.7 MB, free: 2.668 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.973e-05/0.1343, allocations: 15.94 kB / 351.8 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.227e-05/0.1343, allocations: 23.91 kB / 351.8 MB, free: 2.629 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.301e-05/0.1343, allocations: 4 kB / 351.8 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.09e-05/0.1344, allocations: 7.938 kB / 351.8 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.707e-05/0.1344, allocations: 11.94 kB / 351.8 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.623e-05/0.1344, allocations: 15.92 kB / 351.8 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.1346, allocations: 35.88 kB / 351.8 MB, free: 2.555 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1346, allocations: 4 kB / 351.9 MB, free: 2.551 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1346, allocations: 0 / 351.9 MB, free: 2.551 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.1346, allocations: 0 / 351.9 MB, free: 2.551 MB / 286.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.0005672/0.1352, allocations: 363.5 kB / 352.2 MB, free: 2.145 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.1352, allocations: 8.031 kB / 352.2 MB, free: 2.137 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.957e-05/0.1353, allocations: 42.69 kB / 352.3 MB, free: 2.086 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.955e-05/0.1353, allocations: 4.938 kB / 352.3 MB, free: 2.082 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001869/0.1355, allocations: 176.3 kB / 352.4 MB, free: 1.871 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.892e-05/0.1355, allocations: 8.375 kB / 352.4 MB, free: 1.863 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.018e-05/0.1356, allocations: 384 / 352.4 MB, free: 1.863 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006284/0.1362, allocations: 163.7 kB / 352.6 MB, free: 1.691 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.1362, allocations: 7.938 kB / 352.6 MB, free: 1.684 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.1362, allocations: 4 kB / 352.6 MB, free: 1.68 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.1362, allocations: 0 / 352.6 MB, free: 1.68 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002769/0.1365, allocations: 51.94 kB / 352.7 MB, free: 1.629 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001768/0.1367, allocations: 157.7 kB / 352.8 MB, free: 1.426 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003394/0.1371, allocations: 82.55 kB / 352.9 MB, free: 1.336 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001582/0.1372, allocations: 40.86 kB / 352.9 MB, free: 1.293 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.284e-05/0.1372, allocations: 0 / 352.9 MB, free: 1.293 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.1373, allocations: 38.5 kB / 353 MB, free: 1.246 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 2.956e-06/0.1373, allocations: 3.984 kB / 353 MB, free: 1.242 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005663/0.1379, allocations: 113.5 kB / 353.1 MB, free: 1.125 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.986e-05/0.1379, allocations: 59.39 kB / 353.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.303e-05/0.138, allocations: 101.9 kB / 353.2 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/0.1381, allocations: 29.7 kB / 353.3 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.48e-05/0.1381, allocations: 84.12 kB / 353.4 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.16e-05/0.1381, allocations: 11.84 kB / 353.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.913e-05/0.1382, allocations: 17.72 kB / 353.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.1383, allocations: 318.8 kB / 353.7 MB, free: 480 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.884e-05/0.1384, allocations: 11.92 kB / 353.7 MB, free: 468 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.091e-05/0.1384, allocations: 27.44 kB / 353.7 MB, free: 428 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.266e-05/0.1385, allocations: 39.38 kB / 353.8 MB, free: 376 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1385, allocations: 0 / 353.8 MB, free: 376 kB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.159e-05/0.1386, allocations: 57.62 kB / 353.8 MB, free: 312 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.1386, allocations: 10.91 kB / 353.8 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.1386, allocations: 0 / 353.8 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.1386, allocations: 4 kB / 353.8 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.343e-05/0.1387, allocations: 4 kB / 353.9 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.1387, allocations: 16.05 kB / 353.9 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.386e-05/0.1388, allocations: 4 kB / 353.9 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.1388, allocations: 4 kB / 353.9 MB, free: 272 kB / 286.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.0001026/0.1389, allocations: 113.8 kB / 354 MB, free: 148 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003087/0.1392, allocations: 93.48 kB / 354.1 MB, free: 48 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.101e-05/0.1393, allocations: 7.891 kB / 354.1 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1393, allocations: 0 / 354.1 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.1393, allocations: 0 / 354.1 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1393, allocations: 0 / 354.1 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001338/0.1394, allocations: 161.7 kB / 354.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.1394, allocations: 4 kB / 354.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.1395, allocations: 15.98 kB / 354.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.1395, allocations: 3.938 kB / 354.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.1396, allocations: 0 / 354.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.1396, allocations: 4.125 kB / 354.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.1396, allocations: 4 kB / 354.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003516/0.1399, allocations: 113 kB / 354.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.435e-05/0.14, allocations: 92.95 kB / 354.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.274e-05/0.14, allocations: 7.922 kB / 354.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.848e-05/0.1401, allocations: 7.938 kB / 354.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.697e-06/0.1401, allocations: 0 / 354.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.517e-06/0.1401, allocations: 7.984 kB / 354.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.175e-05/0.1402, allocations: 83.28 kB / 354.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1402, allocations: 0 / 354.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001949/0.1404, allocations: 4 kB / 354.6 MB, free: 15.45 MB / 302.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.0008039/0.1412, allocations: 0.6904 MB / 355.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000222/0.1414, allocations: 48.22 kB / 355.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1414, allocations: 0 / 355.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.71e-07/0.1414, allocations: 0 / 355.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000436/0.1419, allocations: 47.66 kB / 355.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001167/0.1431, allocations: 1.199 MB / 356.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.1434, allocations: 0.6807 MB / 357.2 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.329e-05/0.1434, allocations: 4 kB / 357.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.098e-05/0.1434, allocations: 15.42 kB / 357.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1435, allocations: 7.938 kB / 357.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01866/0.1621, allocations: 1.461 MB / 358.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.497/7.659, allocations: 8 kB / 358.7 MB, free: 11.23 MB / 302.1 MB (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.0004 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) 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) "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,ramp.y,periodicClock1.period,ramp.height