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.001328/0.001327, allocations: 113 kB / 17.68 MB, free: 5.473 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.00159/0.00159, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.503/1.503, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 52.44 kB / 302.1 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1419, allocations: 49.44 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.002824/0.1448, allocations: 1.452 MB / 353 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001904/0.145, allocations: 35.91 kB / 353 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.677e-05/0.1451, allocations: 3.938 kB / 353 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.478e-05/0.1451, allocations: 0 / 353 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.192e-05/0.1452, allocations: 7.938 kB / 353 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002467/0.1454, allocations: 19.97 kB / 353 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.143e-05/0.1455, allocations: 39.91 kB / 353.1 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.914e-05/0.1456, allocations: 4 kB / 353.1 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.442e-05/0.1457, allocations: 19.92 kB / 353.1 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.641e-05/0.1457, allocations: 23.92 kB / 353.1 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.601e-05/0.1458, allocations: 4 kB / 353.1 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.048e-05/0.1458, allocations: 4 kB / 353.1 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.75e-05/0.1458, allocations: 15.91 kB / 353.1 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.727e-05/0.1459, allocations: 15.88 kB / 353.1 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.438e-05/0.146, allocations: 35.89 kB / 353.2 MB, free: 1.996 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.146, allocations: 0 / 353.2 MB, free: 1.996 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.146, allocations: 3.938 kB / 353.2 MB, free: 1.992 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.146, allocations: 3.938 kB / 353.2 MB, free: 1.988 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.0005107/0.1465, allocations: 363.4 kB / 353.5 MB, free: 1.582 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.1465, allocations: 12.03 kB / 353.6 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.376e-05/0.1466, allocations: 4.844 kB / 353.6 MB, free: 1.566 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002142/0.1468, allocations: 188.2 kB / 353.7 MB, free: 1.344 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.9e-05/0.1468, allocations: 384 / 353.7 MB, free: 1.344 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.1468, allocations: 4.375 kB / 353.7 MB, free: 1.34 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005289/0.1474, allocations: 155.7 kB / 353.9 MB, free: 1.176 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.1474, allocations: 192 / 353.9 MB, free: 1.176 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.1474, allocations: 7.938 kB / 353.9 MB, free: 1.168 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.1474, allocations: 4 kB / 353.9 MB, free: 1.164 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002287/0.1477, allocations: 43.94 kB / 354 MB, free: 1.121 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000152/0.1478, allocations: 161.7 kB / 354.1 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.1481, allocations: 86.47 kB / 354.2 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.1483, allocations: 36.88 kB / 354.2 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.274e-05/0.1483, allocations: 4 kB / 354.2 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.1483, allocations: 34.56 kB / 354.3 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.282e-06/0.1483, allocations: 0 / 354.3 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004529/0.1488, allocations: 113.5 kB / 354.4 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/0.1489, allocations: 63.34 kB / 354.4 MB, free: 0.543 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.668e-05/0.149, allocations: 105.8 kB / 354.5 MB, free: 440 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.149, allocations: 25.7 kB / 354.6 MB, free: 408 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.069e-05/0.149, allocations: 92.14 kB / 354.7 MB, free: 312 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.41e-05/0.149, allocations: 7.844 kB / 354.7 MB, free: 304 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.37e-05/0.1491, allocations: 17.72 kB / 354.7 MB, free: 280 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.1492, allocations: 314.8 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.404e-05/0.1492, allocations: 4 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.953e-05/0.1493, allocations: 27.44 kB / 355 MB, free: 15.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.509e-05/0.1493, allocations: 43.36 kB / 355.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1493, allocations: 0 / 355.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.953e-05/0.1494, allocations: 61.62 kB / 355.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.1494, allocations: 4 kB / 355.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.413e-06/0.1495, allocations: 7.938 kB / 355.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.1495, allocations: 4.125 kB / 355.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.694e-05/0.1495, allocations: 11.94 kB / 355.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.1496, allocations: 0 / 355.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.903e-05/0.1496, allocations: 0 / 355.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.547e-06/0.1496, allocations: 4 kB / 355.2 MB, free: 15.76 MB / 302.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 7.454e-05/0.1497, allocations: 113.8 kB / 355.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002746/0.15, allocations: 89.53 kB / 355.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.348e-05/0.15, allocations: 12.2 kB / 355.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.15, allocations: 3.938 kB / 355.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.15, allocations: 12 kB / 355.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.15, allocations: 3.984 kB / 355.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.1501, allocations: 157.7 kB / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1502, allocations: 0 / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.538e-05/0.1503, allocations: 19.91 kB / 355.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.1503, allocations: 4 kB / 355.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.1503, allocations: 3.938 kB / 355.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1503, allocations: 0 / 355.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.1503, allocations: 0 / 355.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002854/0.1506, allocations: 117.1 kB / 355.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001106/0.1507, allocations: 81.02 kB / 355.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.1507, allocations: 7.875 kB / 355.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.315e-05/0.1508, allocations: 11.98 kB / 355.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.996e-06/0.1508, allocations: 0 / 355.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.1508, allocations: 4 kB / 355.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.258e-05/0.1509, allocations: 87.56 kB / 355.9 MB, free: 14.94 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1509, allocations: 0 / 355.9 MB, free: 14.94 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001862/0.1511, allocations: 12 kB / 355.9 MB, free: 14.93 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.0001172/0.1512, allocations: 111.6 kB / 356 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001936/0.1514, allocations: 35.97 kB / 356 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1514, allocations: 0 / 356 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.61e-07/0.1514, allocations: 0 / 356 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003396/0.1517, allocations: 51.92 kB / 356.1 MB, free: 14.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003723/0.1521, allocations: 132.2 kB / 356.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002373/0.1524, allocations: 0.6848 MB / 356.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.971e-05/0.1524, allocations: 0 / 356.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.654e-05/0.1524, allocations: 11.42 kB / 356.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1524, allocations: 4 kB / 356.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of Templates: time 0.002414/0.1549, allocations: 0.5103 MB / 357.4 MB, free: 13.34 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 -s cvode -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/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