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.0015/0.001499, allocations: 114.1 kB / 17.07 MB, free: 5.984 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.001784/0.001784, allocations: 194.9 kB / 18.01 MB, free: 5.066 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.523/1.523, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 51.91 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4471/0.4486, allocations: 49.42 MB / 400.7 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.004132/0.4528, allocations: 1.476 MB / 402.2 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003697/0.4533, allocations: 35.84 kB / 402.2 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.4534, allocations: 0 / 402.2 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.617e-05/0.4535, allocations: 3.938 kB / 402.2 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.111e-05/0.4536, allocations: 15.88 kB / 402.3 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000346/0.4539, allocations: 15.98 kB / 402.3 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001272/0.4541, allocations: 43.89 kB / 402.3 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.4542, allocations: 8 kB / 402.3 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.965e-05/0.4543, allocations: 19.92 kB / 402.3 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.493e-05/0.4544, allocations: 19.92 kB / 402.4 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.4544, allocations: 4 kB / 402.4 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.402e-05/0.4544, allocations: 4 kB / 402.4 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.702e-05/0.4544, allocations: 11.92 kB / 402.4 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.455e-05/0.4545, allocations: 15.92 kB / 402.4 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001528/0.4546, allocations: 35.89 kB / 402.4 MB, free: 7.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.4547, allocations: 0 / 402.4 MB, free: 7.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.01e-06/0.4547, allocations: 0 / 402.4 MB, free: 7.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.4547, allocations: 3.938 kB / 402.4 MB, free: 7.184 MB / 318.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.0006037/0.4553, allocations: 363.2 kB / 402.8 MB, free: 6.781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/0.4553, allocations: 8.031 kB / 402.8 MB, free: 6.773 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.265e-05/0.4554, allocations: 4.938 kB / 402.8 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003566/0.4558, allocations: 184.2 kB / 403 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.702e-05/0.4558, allocations: 8.375 kB / 403 MB, free: 6.543 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.263e-05/0.4558, allocations: 384 / 403 MB, free: 6.543 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005795/0.4564, allocations: 155.8 kB / 403.1 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.4564, allocations: 192 / 403.1 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.4564, allocations: 3.938 kB / 403.1 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.4565, allocations: 7.984 kB / 403.1 MB, free: 6.367 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002499/0.4567, allocations: 51.88 kB / 403.2 MB, free: 6.316 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00017/0.4569, allocations: 161.7 kB / 403.4 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.4572, allocations: 86.53 kB / 403.4 MB, free: 6.016 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001437/0.4574, allocations: 36.88 kB / 403.5 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.888e-06/0.4574, allocations: 0 / 403.5 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.4574, allocations: 34.56 kB / 403.5 MB, free: 5.934 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 7.51e-07/0.4574, allocations: 0 / 403.5 MB, free: 5.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0006086/0.458, allocations: 121.4 kB / 403.6 MB, free: 5.809 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.504e-05/0.4581, allocations: 63.41 kB / 403.7 MB, free: 5.734 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.887e-05/0.4582, allocations: 105.8 kB / 403.8 MB, free: 5.621 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.4583, allocations: 25.7 kB / 403.8 MB, free: 5.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001962/0.4585, allocations: 84.14 kB / 403.9 MB, free: 5.504 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.205e-05/0.4585, allocations: 7.938 kB / 403.9 MB, free: 5.496 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.289e-05/0.4585, allocations: 13.72 kB / 403.9 MB, free: 5.477 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002919/0.4588, allocations: 318.8 kB / 404.2 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.392e-05/0.4589, allocations: 8 kB / 404.2 MB, free: 5.148 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.34e-05/0.4589, allocations: 31.44 kB / 404.3 MB, free: 5.105 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001002/0.459, allocations: 39.36 kB / 404.3 MB, free: 5.055 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.4591, allocations: 7.938 kB / 404.3 MB, free: 5.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001389/0.4592, allocations: 65.53 kB / 404.4 MB, free: 4.977 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.4592, allocations: 6.5 kB / 404.4 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.4593, allocations: 11.92 kB / 404.4 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.4593, allocations: 0 / 404.4 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.894e-05/0.4594, allocations: 8 kB / 404.4 MB, free: 4.953 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.4594, allocations: 0 / 404.4 MB, free: 4.953 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.25e-05/0.4595, allocations: 0 / 404.4 MB, free: 4.953 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.164e-05/0.4595, allocations: 4 kB / 404.4 MB, free: 4.949 MB / 318.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.0001398/0.4596, allocations: 118 kB / 404.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004509/0.4601, allocations: 89.56 kB / 404.6 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.798e-05/0.4602, allocations: 11.84 kB / 404.6 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.4602, allocations: 0 / 404.6 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.4602, allocations: 0 / 404.6 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.4602, allocations: 4 kB / 404.6 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001748/0.4604, allocations: 161.6 kB / 404.8 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.4604, allocations: 0 / 404.8 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000142/0.4606, allocations: 11.98 kB / 404.8 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.4606, allocations: 4 kB / 404.8 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.4606, allocations: 11.92 kB / 404.8 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.4606, allocations: 320 / 404.8 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4606, allocations: 0 / 404.8 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004727/0.4611, allocations: 121.2 kB / 404.9 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.903e-05/0.4612, allocations: 81.06 kB / 405 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.672e-05/0.4612, allocations: 7.875 kB / 405 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.657e-05/0.4613, allocations: 7.984 kB / 405 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.468e-06/0.4613, allocations: 8 kB / 405 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.4614, allocations: 128 / 405 MB, free: 4.215 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.101e-05/0.4614, allocations: 91.25 kB / 405.1 MB, free: 4.125 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4615, allocations: 0 / 405.1 MB, free: 4.125 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002988/0.4618, allocations: 4 kB / 405.1 MB, free: 4.121 MB / 318.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.0002431/0.462, allocations: 108 kB / 405.2 MB, free: 4.008 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003356/0.4624, allocations: 39.91 kB / 405.3 MB, free: 3.969 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.9e-06/0.4624, allocations: 256 / 405.3 MB, free: 3.969 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.52e-07/0.4624, allocations: 4 kB / 405.3 MB, free: 3.965 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004835/0.4629, allocations: 51.97 kB / 405.3 MB, free: 3.914 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003984/0.4633, allocations: 121.5 kB / 405.4 MB, free: 3.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003503/0.4637, allocations: 0.6844 MB / 406.1 MB, free: 3.059 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.373e-05/0.4637, allocations: 0 / 406.1 MB, free: 3.059 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.448e-05/0.4638, allocations: 15.38 kB / 406.1 MB, free: 3.043 MB / 318.1 MB Notification: Performance of SimCode: time 2.364e-06/0.4638, allocations: 0 / 406.1 MB, free: 3.043 MB / 318.1 MB Notification: Performance of Templates: time 0.003524/0.4673, allocations: 0.5243 MB / 406.7 MB, free: 2.523 MB / 318.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