Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.016/1.016, allocations: 177.1 MB / 205 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 273 MB, free: 1.527 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.014e-05/3.198e-05, allocations: 2.312 kB / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.002731/0.002763, allocations: 1.529 MB / 274.5 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002082/0.002971, allocations: 39.84 kB / 274.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.761e-05/0.003038, allocations: 3.938 kB / 274.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.817e-05/0.003067, allocations: 0 / 274.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.581e-05/0.003112, allocations: 7.875 kB / 274.6 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002926/0.003405, allocations: 27.95 kB / 274.6 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.225e-05/0.003497, allocations: 35.92 kB / 274.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.003601, allocations: 4 kB / 274.6 MB, free: 15.87 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.41e-05/0.003675, allocations: 27.91 kB / 274.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.135e-05/0.003716, allocations: 19.97 kB / 274.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.194e-05/0.003738, allocations: 4 kB / 274.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.879e-06/0.003748, allocations: 0 / 274.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.212e-05/0.00377, allocations: 8 kB / 274.7 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.545e-05/0.003806, allocations: 11.94 kB / 274.7 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001006/0.003906, allocations: 27.89 kB / 274.7 MB, free: 15.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.844e-06/0.003908, allocations: 0 / 274.7 MB, free: 15.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.003909, allocations: 0 / 274.7 MB, free: 15.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.003914, allocations: 3.938 kB / 274.7 MB, free: 15.77 MB / 266.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.0004031/0.004318, allocations: 380.6 kB / 275.1 MB, free: 15.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.004361, allocations: 12.03 kB / 275.1 MB, free: 15.35 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.29e-05/0.004404, allocations: 8.891 kB / 275.1 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.004593, allocations: 128.5 kB / 275.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.004614, allocations: 384 / 275.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.265e-05/0.004626, allocations: 4.375 kB / 275.2 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002587/0.004885, allocations: 126.1 kB / 275.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.004893, allocations: 192 / 275.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.004904, allocations: 4.375 kB / 275.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.00491, allocations: 4.375 kB / 275.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.271e-05/0.004943, allocations: 11.94 kB / 275.4 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.664e-05/0.00504, allocations: 116.6 kB / 275.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.578e-05/0.005116, allocations: 46.98 kB / 275.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.491e-05/0.00515, allocations: 19.75 kB / 275.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.264e-06/0.005158, allocations: 0 / 275.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.005182, allocations: 41.38 kB / 275.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 7.01e-07/0.005183, allocations: 0 / 275.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001493/0.005332, allocations: 49.69 kB / 275.7 MB, free: 14.69 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/0.005377, allocations: 59.34 kB / 275.7 MB, free: 14.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.82e-05/0.005455, allocations: 173.9 kB / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.005e-05/0.005465, allocations: 25.7 kB / 275.9 MB, free: 14.4 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.639e-05/0.005511, allocations: 130.9 kB / 276 MB, free: 14.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.893e-05/0.00553, allocations: 11.89 kB / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.774e-05/0.005558, allocations: 23.36 kB / 276.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.005704, allocations: 492.1 kB / 276.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.133e-05/0.005715, allocations: 0 / 276.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.846e-06/0.005724, allocations: 4 kB / 276.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.066e-05/0.005755, allocations: 15.69 kB / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.005757, allocations: 0 / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.745e-05/0.005815, allocations: 45.69 kB / 276.6 MB, free: 13.66 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.005831, allocations: 4 kB / 276.6 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.005837, allocations: 0 / 276.6 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.005853, allocations: 0 / 276.6 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.82e-05/0.005911, allocations: 8 kB / 276.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.005917, allocations: 0 / 276.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.054e-05/0.005928, allocations: 3.938 kB / 276.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.888e-06/0.005932, allocations: 4 kB / 276.6 MB, free: 13.64 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 2 * 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.632e-05/0.006008, allocations: 156.6 kB / 276.8 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.035e-05/0.006068, allocations: 53.67 kB / 276.8 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.916e-05/0.006107, allocations: 11.98 kB / 276.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.006111, allocations: 0 / 276.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.006116, allocations: 0 / 276.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.006123, allocations: 3.938 kB / 276.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.388e-05/0.006197, allocations: 116.6 kB / 277 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.006198, allocations: 0 / 277 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.593e-05/0.006254, allocations: 11.94 kB / 277 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/0.006255, allocations: 0 / 277 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.006266, allocations: 7.984 kB / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-07/0.006267, allocations: 0 / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.006268, allocations: 4 kB / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.988e-05/0.006358, allocations: 92.38 kB / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.866e-06/0.006366, allocations: 3.953 kB / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.681e-05/0.006383, allocations: 7.938 kB / 277.1 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.933e-05/0.006403, allocations: 3.984 kB / 277.1 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.769e-06/0.006407, allocations: 4 kB / 277.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-06/0.00641, allocations: 0 / 277.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.976e-05/0.00646, allocations: 127.2 kB / 277.2 MB, free: 12.97 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00646, allocations: 0 / 277.2 MB, free: 12.97 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000121/0.006581, allocations: 4 kB / 277.2 MB, free: 12.96 MB / 266.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: 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 9.152e-05/0.006673, allocations: 107.2 kB / 277.3 MB, free: 12.85 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001029/0.006776, allocations: 23.62 kB / 277.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.006778, allocations: 0 / 277.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.11e-07/0.006778, allocations: 0 / 277.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002265/0.007005, allocations: 17.42 kB / 277.4 MB, free: 12.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000291/0.007296, allocations: 133.2 kB / 277.5 MB, free: 12.64 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.022e-05/0.007336, allocations: 59.34 kB / 277.6 MB, free: 12.57 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.772e-05/0.007354, allocations: 256 / 277.6 MB, free: 12.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.817e-05/0.007382, allocations: 8.5 kB / 277.6 MB, free: 12.55 MB / 266.7 MB Notification: Performance of SimCode: time 4.21e-07/0.007382, allocations: 12 kB / 277.6 MB, free: 12.54 MB / 266.7 MB Notification: Performance of Templates: time 0.002233/0.009615, allocations: 0.5569 MB / 278.1 MB, free: 12 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9928120891563594]