Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001539/0.001539, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 225.6 MB / 234.8 MB, free: 3.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008139/0.0008141, allocations: 94.62 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.647e-05/1.649e-05, allocations: 4 kB / 343.7 MB, free: 8.238 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09456/0.09459, allocations: 51.48 MB / 395.2 MB, free: 4.715 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2977/0.3924, allocations: 76.6 MB / 471.8 MB, free: 14.63 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001944/0.3926, allocations: 79.27 kB / 471.9 MB, free: 14.6 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002802/0.3954, allocations: 1.146 MB / 473 MB, free: 13.85 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3954, allocations: 0 / 473 MB, free: 13.85 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.026e-06/0.3954, allocations: 0 / 473 MB, free: 13.85 MB / 346.7 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.000267/0.3957, allocations: 351.1 kB / 473.3 MB, free: 13.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.3958, allocations: 12.78 kB / 473.4 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.838e-05/0.3958, allocations: 2.812 kB / 473.4 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.3959, allocations: 174.8 kB / 473.5 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.396, allocations: 0.8594 kB / 473.5 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.396, allocations: 3.938 kB / 473.5 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.047e-05/0.396, allocations: 16.5 kB / 473.5 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001641/0.3962, allocations: 99.47 kB / 473.6 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.3962, allocations: 0 / 473.6 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.306e-06/0.3962, allocations: 0 / 473.6 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.3963, allocations: 0 / 473.6 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.793e-05/0.3963, allocations: 136.1 kB / 473.8 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.016e-05/0.3964, allocations: 46.86 kB / 473.8 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.389e-05/0.3965, allocations: 24.11 kB / 473.8 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.3965, allocations: 4.703 kB / 473.9 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.47e-05/0.3965, allocations: 30.56 kB / 473.9 MB, free: 12.89 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 9.01e-07/0.3965, allocations: 0 / 473.9 MB, free: 12.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001213/0.3967, allocations: 51.23 kB / 473.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.298e-05/0.3967, allocations: 56.06 kB / 474 MB, free: 12.78 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.992e-05/0.3967, allocations: 97.17 kB / 474.1 MB, free: 12.69 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.233e-06/0.3968, allocations: 25.7 kB / 474.1 MB, free: 12.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.977e-05/0.3968, allocations: 88.75 kB / 474.2 MB, free: 12.57 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.963e-06/0.3968, allocations: 4.156 kB / 474.2 MB, free: 12.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-06/0.3968, allocations: 0 / 474.2 MB, free: 12.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.259e-05/0.3969, allocations: 312.8 kB / 474.5 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.977e-06/0.3969, allocations: 7.938 kB / 474.5 MB, free: 12.25 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.705e-05/0.3969, allocations: 27.38 kB / 474.5 MB, free: 12.21 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.595e-05/0.3969, allocations: 11.92 kB / 474.6 MB, free: 12.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.3969, allocations: 0 / 474.6 MB, free: 12.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.616e-05/0.397, allocations: 51.77 kB / 474.6 MB, free: 12.15 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.397, allocations: 8.703 kB / 474.6 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.397, allocations: 0 / 474.6 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.397, allocations: 0.9531 kB / 474.6 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.159e-05/0.3971, allocations: 8.703 kB / 474.6 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.79e-06/0.3971, allocations: 8.875 kB / 474.6 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.942e-05/0.3971, allocations: 3.984 kB / 474.6 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.027e-06/0.3971, allocations: 4 kB / 474.6 MB, free: 12.12 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 3.886e-05/0.3972, allocations: 109.7 kB / 474.7 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.171e-05/0.3972, allocations: 51.09 kB / 474.8 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.579e-05/0.3972, allocations: 4.953 kB / 474.8 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.3973, allocations: 0.7969 kB / 474.8 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3973, allocations: 3.812 kB / 474.8 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.3973, allocations: 3.953 kB / 474.8 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.157e-05/0.3973, allocations: 140.4 kB / 474.9 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3973, allocations: 0 / 474.9 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.969e-05/0.3974, allocations: 18.69 kB / 475 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.3974, allocations: 0 / 475 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.3974, allocations: 0 / 475 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.3974, allocations: 0.75 kB / 475 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3975, allocations: 6.156 kB / 475 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.427e-05/0.3975, allocations: 83.44 kB / 475 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.877e-05/0.3976, allocations: 82.66 kB / 475.1 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.246e-05/0.3976, allocations: 0 / 475.1 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.457e-05/0.3976, allocations: 6.297 kB / 475.1 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.375e-06/0.3977, allocations: 4 kB / 475.1 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-06/0.3977, allocations: 0 / 475.1 MB, free: 11.58 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.207e-05/0.3977, allocations: 89.67 kB / 475.2 MB, free: 11.5 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3977, allocations: 0 / 475.2 MB, free: 11.5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001882/0.3979, allocations: 4 kB / 475.2 MB, free: 11.49 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * 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 7.689e-05/0.398, allocations: 101 kB / 475.3 MB, free: 11.39 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.97e-05/0.398, allocations: 19.81 kB / 475.3 MB, free: 11.37 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3981, allocations: 0 / 475.3 MB, free: 11.37 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.91e-07/0.3981, allocations: 0 / 475.3 MB, free: 11.37 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001873/0.3982, allocations: 25.66 kB / 475.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001521/0.3984, allocations: 62.67 kB / 475.4 MB, free: 11.28 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001036/0.3985, allocations: 0.6874 MB / 476.1 MB, free: 10.57 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.54e-05/0.3985, allocations: 4 kB / 476.1 MB, free: 10.57 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.003e-05/0.3986, allocations: 7.438 kB / 476.1 MB, free: 10.56 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3986, allocations: 0 / 476.1 MB, free: 10.56 MB / 346.7 MB Notification: Performance of Templates: time 0.001903/0.4005, allocations: 361.9 kB / 476.5 MB, free: 10.37 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedRamp/TimeBasedRamp.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches