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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.001407/0.001407, allocations: 179.8 kB / 17.21 MB, free: 6.324 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.576/1.576, allocations: 223.3 MB / 241.2 MB, free: 336 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002711/0.0002712, allocations: 8 kB / 300.8 MB, free: 6.445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1224, allocations: 50.41 MB / 351.2 MB, free: 4.02 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.001856/0.1243, allocations: 1.159 MB / 352.4 MB, free: 2.848 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001864/0.1245, allocations: 47.88 kB / 352.5 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.878e-05/0.1246, allocations: 3.938 kB / 352.5 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.816e-05/0.1246, allocations: 7.938 kB / 352.5 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.525e-05/0.1246, allocations: 0 / 352.5 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003142/0.125, allocations: 19.97 kB / 352.5 MB, free: 2.77 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001024/0.1251, allocations: 35.86 kB / 352.5 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.1252, allocations: 11.94 kB / 352.5 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.778e-05/0.1253, allocations: 15.98 kB / 352.5 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.635e-05/0.1253, allocations: 15.92 kB / 352.6 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.631e-05/0.1253, allocations: 0 / 352.6 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.199e-05/0.1254, allocations: 4 kB / 352.6 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.685e-05/0.1254, allocations: 7.922 kB / 352.6 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.666e-05/0.1254, allocations: 33.7 kB / 352.6 MB, free: 2.641 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.864e-05/0.1255, allocations: 23.94 kB / 352.6 MB, free: 2.617 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.1255, allocations: 0 / 352.6 MB, free: 2.617 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.1255, allocations: 0 / 352.6 MB, free: 2.617 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.1255, allocations: 0 / 352.6 MB, free: 2.617 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.0004763/0.126, allocations: 351.5 kB / 353 MB, free: 2.227 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.1261, allocations: 8.031 kB / 353 MB, free: 2.219 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.842e-05/0.1261, allocations: 11.86 kB / 353 MB, free: 2.207 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001897/0.1263, allocations: 171.1 kB / 353.2 MB, free: 2 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.1263, allocations: 11.94 kB / 353.2 MB, free: 1.988 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.1264, allocations: 4 kB / 353.2 MB, free: 1.984 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005486/0.1269, allocations: 159.2 kB / 353.3 MB, free: 1.816 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.1269, allocations: 0 / 353.3 MB, free: 1.816 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.1269, allocations: 0 / 353.3 MB, free: 1.816 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.127, allocations: 0 / 353.3 MB, free: 1.816 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002366/0.1272, allocations: 63.83 kB / 353.4 MB, free: 1.754 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001881/0.1274, allocations: 165.6 kB / 353.6 MB, free: 1.543 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002964/0.1277, allocations: 82.52 kB / 353.6 MB, free: 1.453 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/0.1278, allocations: 36.91 kB / 353.7 MB, free: 1.414 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.1279, allocations: 4 kB / 353.7 MB, free: 1.41 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.958e-05/0.1279, allocations: 38.55 kB / 353.7 MB, free: 1.363 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.232e-06/0.1279, allocations: 0 / 353.7 MB, free: 1.363 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004523/0.1284, allocations: 129.4 kB / 353.8 MB, free: 1.23 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.735e-05/0.1284, allocations: 51.41 kB / 353.9 MB, free: 1.168 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.033e-05/0.1285, allocations: 117.8 kB / 354 MB, free: 1.043 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.1286, allocations: 25.7 kB / 354 MB, free: 1.012 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.5e-05/0.1286, allocations: 88.12 kB / 354.1 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.276e-05/0.1286, allocations: 0 / 354.1 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-06/0.1286, allocations: 0 / 354.1 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1288, allocations: 322.8 kB / 354.4 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.505e-05/0.1288, allocations: 4 kB / 354.4 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.24e-05/0.1289, allocations: 35.38 kB / 354.5 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.547e-05/0.1289, allocations: 15.92 kB / 354.5 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1289, allocations: 0 / 354.5 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.489e-05/0.129, allocations: 61.64 kB / 354.5 MB, free: 476 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.129, allocations: 4 kB / 354.5 MB, free: 472 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.129, allocations: 0 / 354.5 MB, free: 472 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.129, allocations: 7.984 kB / 354.6 MB, free: 464 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-05/0.1291, allocations: 8 kB / 354.6 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.1291, allocations: 0 / 354.6 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.894e-05/0.1291, allocations: 0 / 354.6 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.1292, allocations: 11.95 kB / 354.6 MB, free: 444 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 (ramp.counter,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.569e-05/0.1293, allocations: 117.9 kB / 354.7 MB, free: 316 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002641/0.1295, allocations: 93.66 kB / 354.8 MB, free: 216 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.223e-05/0.1296, allocations: 7.906 kB / 354.8 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1296, allocations: 0 / 354.8 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.1296, allocations: 3.938 kB / 354.8 MB, free: 196 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.1296, allocations: 0 / 354.8 MB, free: 196 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.1297, allocations: 161.6 kB / 355 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.1297, allocations: 4 kB / 355 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.006e-05/0.1298, allocations: 11.98 kB / 355 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.1298, allocations: 0 / 355 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.1299, allocations: 11.98 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1299, allocations: 0 / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1299, allocations: 4 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002907/0.1302, allocations: 120.9 kB / 355.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.518e-05/0.1302, allocations: 81.11 kB / 355.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.774e-05/0.1302, allocations: 4 kB / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.028e-05/0.1303, allocations: 11.98 kB / 355.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.679e-06/0.1303, allocations: 0 / 355.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-06/0.1303, allocations: 0 / 355.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.052e-05/0.1304, allocations: 83.28 kB / 355.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1304, allocations: 4 kB / 355.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001918/0.1306, allocations: 4 kB / 355.3 MB, free: 15.61 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001229/0.1307, allocations: 107.2 kB / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001906/0.1309, allocations: 43.91 kB / 355.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1309, allocations: 0 / 355.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.51e-07/0.1309, allocations: 0 / 355.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004026/0.1313, allocations: 48.19 kB / 355.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003532/0.1317, allocations: 140 kB / 355.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002406/0.132, allocations: 0.6924 MB / 356.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.226e-05/0.132, allocations: 4.422 kB / 356.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.66e-05/0.132, allocations: 7.438 kB / 356.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.132, allocations: 0 / 356.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of Templates: time 0.002654/0.1347, allocations: 483.5 kB / 356.8 MB, free: 14.05 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","/var/lib/jenkins/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