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.001982/0.001983, allocations: 115 kB / 16.63 MB, free: 6.812 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.002555/0.002555, allocations: 186 kB / 17.55 MB, free: 5.934 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.573/1.573, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.001379, allocations: 43.56 kB / 300.2 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1385, allocations: 49.45 MB / 349.7 MB, free: 4.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.00426/0.1428, allocations: 1.522 MB / 351.2 MB, free: 3.105 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002757/0.1431, allocations: 31.91 kB / 351.2 MB, free: 3.074 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.16e-05/0.1432, allocations: 0 / 351.2 MB, free: 3.074 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.505e-05/0.1434, allocations: 3.938 kB / 351.2 MB, free: 3.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.232e-05/0.1434, allocations: 0 / 351.2 MB, free: 3.07 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003769/0.1438, allocations: 23.97 kB / 351.3 MB, free: 3.047 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.1439, allocations: 35.92 kB / 351.3 MB, free: 3.012 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/0.1441, allocations: 11.98 kB / 351.3 MB, free: 3 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.626e-05/0.1441, allocations: 15.94 kB / 351.3 MB, free: 2.984 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.241e-05/0.1442, allocations: 19.92 kB / 351.4 MB, free: 2.965 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.165e-05/0.1442, allocations: 0 / 351.4 MB, free: 2.965 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.261e-05/0.1443, allocations: 4 kB / 351.4 MB, free: 2.961 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.884e-05/0.1443, allocations: 19.91 kB / 351.4 MB, free: 2.941 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.067e-05/0.1443, allocations: 15.94 kB / 351.4 MB, free: 2.926 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001158/0.1445, allocations: 35.88 kB / 351.4 MB, free: 2.891 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.1445, allocations: 4 kB / 351.4 MB, free: 2.887 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1445, allocations: 3.938 kB / 351.4 MB, free: 2.883 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.044e-06/0.1445, allocations: 0 / 351.4 MB, free: 2.883 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.0006526/0.1452, allocations: 367.5 kB / 351.8 MB, free: 2.473 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/0.1452, allocations: 8.031 kB / 351.8 MB, free: 2.465 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.853e-05/0.1453, allocations: 30.75 kB / 351.8 MB, free: 2.426 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.822e-05/0.1453, allocations: 4.938 kB / 351.8 MB, free: 2.422 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002206/0.1455, allocations: 180.3 kB / 352 MB, free: 2.207 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/0.1456, allocations: 4.375 kB / 352 MB, free: 2.203 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.124e-05/0.1456, allocations: 384 / 352 MB, free: 2.203 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006184/0.1462, allocations: 171.7 kB / 352.2 MB, free: 2.023 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.1463, allocations: 3.938 kB / 352.2 MB, free: 2.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.1463, allocations: 0 / 352.2 MB, free: 2.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.1463, allocations: 0 / 352.2 MB, free: 2.02 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002573/0.1465, allocations: 47.94 kB / 352.2 MB, free: 1.973 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001776/0.1467, allocations: 165.7 kB / 352.4 MB, free: 1.762 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003297/0.1471, allocations: 82.45 kB / 352.5 MB, free: 1.672 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.1472, allocations: 44.89 kB / 352.5 MB, free: 1.625 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.662e-05/0.1473, allocations: 0 / 352.5 MB, free: 1.625 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.1473, allocations: 30.56 kB / 352.5 MB, free: 1.586 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.352e-06/0.1473, allocations: 0 / 352.5 MB, free: 1.586 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005418/0.1478, allocations: 121.7 kB / 352.7 MB, free: 1.461 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.798e-05/0.1479, allocations: 55.41 kB / 352.7 MB, free: 1.395 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.1481, allocations: 109.8 kB / 352.8 MB, free: 1.277 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.1481, allocations: 25.7 kB / 352.9 MB, free: 1.246 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.541e-05/0.1482, allocations: 88.14 kB / 352.9 MB, free: 1.156 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.327e-05/0.1482, allocations: 19.77 kB / 353 MB, free: 1.137 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.892e-05/0.1483, allocations: 13.72 kB / 353 MB, free: 1.117 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.1484, allocations: 314.8 kB / 353.3 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.824e-05/0.1485, allocations: 8 kB / 353.3 MB, free: 0.793 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.549e-05/0.1485, allocations: 27.42 kB / 353.3 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.745e-05/0.1486, allocations: 39.38 kB / 353.4 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1486, allocations: 0 / 353.4 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001087/0.1487, allocations: 61.62 kB / 353.4 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.1487, allocations: 7.938 kB / 353.4 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1487, allocations: 4.125 kB / 353.4 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.1487, allocations: 4 kB / 353.4 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.517e-05/0.1488, allocations: 4 kB / 353.4 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.1489, allocations: 7.938 kB / 353.4 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.324e-05/0.1489, allocations: 0 / 353.4 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.1489, allocations: 7.984 kB / 353.4 MB, free: 0.6016 MB / 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.0001111/0.149, allocations: 113.8 kB / 353.6 MB, free: 492 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000305/0.1493, allocations: 89.48 kB / 353.6 MB, free: 396 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.328e-05/0.1494, allocations: 7.906 kB / 353.7 MB, free: 380 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1494, allocations: 4 kB / 353.7 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.1494, allocations: 0 / 353.7 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.373e-06/0.1494, allocations: 3.984 kB / 353.7 MB, free: 372 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001324/0.1496, allocations: 157.7 kB / 353.8 MB, free: 164 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1496, allocations: 4 kB / 353.8 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.1497, allocations: 15.92 kB / 353.8 MB, free: 144 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.1497, allocations: 3.938 kB / 353.8 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.676e-06/0.1497, allocations: 0 / 353.8 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1497, allocations: 0 / 353.8 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1497, allocations: 4 kB / 353.8 MB, free: 136 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000319/0.1501, allocations: 113.1 kB / 354 MB, free: 4 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.499e-05/0.1502, allocations: 89.08 kB / 354 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.47e-05/0.1502, allocations: 7.938 kB / 354 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.308e-05/0.1503, allocations: 15.92 kB / 354.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.667e-06/0.1503, allocations: 0 / 354.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.1503, allocations: 4 kB / 354.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.742e-05/0.1503, allocations: 83.27 kB / 354.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1504, allocations: 0 / 354.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001932/0.1506, allocations: 12 kB / 354.2 MB, free: 15.78 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.001108/0.1517, allocations: 0.6865 MB / 354.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002916/0.152, allocations: 43.89 kB / 354.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.152, allocations: 320 / 354.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.154e-06/0.152, allocations: 7.938 kB / 354.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005951/0.1526, allocations: 53.67 kB / 355 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001663/0.1543, allocations: 1.197 MB / 356.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003678/0.1547, allocations: 0.6846 MB / 356.8 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.716e-05/0.1547, allocations: 0 / 356.8 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.65e-05/0.1548, allocations: 15.42 kB / 356.8 MB, free: 12.94 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1548, allocations: 0 / 356.8 MB, free: 12.94 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01702/0.1718, allocations: 1.39 MB / 358.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002711/0.1721, allocations: 223.1 kB / 358.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.948/2.12, allocations: 0 / 358.5 MB, free: 11.43 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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) Reference file matches