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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008972/0.0008972, allocations: 145.2 kB / 25.59 MB, free: 8.918 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9341/0.9341, allocations: 173.4 MB / 202.2 MB, free: 8.281 MB / 186.7 MB " [Timeout remaining time 179] 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=5011,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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 269.2 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.386e-05/1.5e-05, allocations: 5.266 kB / 269.2 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.001917/0.001932, allocations: 1.502 MB / 270.7 MB, free: 8.281 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001938/0.002126, allocations: 36.69 kB / 270.7 MB, free: 8.246 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.557e-05/0.002191, allocations: 3.938 kB / 270.7 MB, free: 8.242 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.612e-05/0.002217, allocations: 0.625 kB / 270.8 MB, free: 8.242 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.662e-05/0.002264, allocations: 3.938 kB / 270.8 MB, free: 8.238 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002104/0.002474, allocations: 29.44 kB / 270.8 MB, free: 8.211 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.76e-05/0.002552, allocations: 43.84 kB / 270.8 MB, free: 8.168 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.604e-05/0.002628, allocations: 8 kB / 270.8 MB, free: 8.16 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.96e-05/0.002688, allocations: 23.97 kB / 270.9 MB, free: 8.137 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.101e-05/0.002719, allocations: 9.828 kB / 270.9 MB, free: 8.129 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.756e-05/0.002736, allocations: 4 kB / 270.9 MB, free: 8.125 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.155e-06/0.002744, allocations: 4 kB / 270.9 MB, free: 8.121 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.347e-05/0.002768, allocations: 11.92 kB / 270.9 MB, free: 8.109 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.057e-05/0.002788, allocations: 10.03 kB / 270.9 MB, free: 8.102 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 7.774e-05/0.002866, allocations: 31.83 kB / 270.9 MB, free: 8.07 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.00287, allocations: 4 kB / 270.9 MB, free: 8.066 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.00287, allocations: 0 / 270.9 MB, free: 8.066 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.907e-06/0.002874, allocations: 4 kB / 270.9 MB, free: 8.062 MB / 250.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.0003069/0.003181, allocations: 372.6 kB / 271.3 MB, free: 7.66 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/0.003211, allocations: 12.83 kB / 271.3 MB, free: 7.648 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.724e-05/0.003238, allocations: 12.89 kB / 271.3 MB, free: 7.637 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.003355, allocations: 126.6 kB / 271.4 MB, free: 7.488 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.003368, allocations: 384 / 271.4 MB, free: 7.488 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-06/0.003374, allocations: 4.375 kB / 271.5 MB, free: 7.484 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001744/0.003549, allocations: 119.4 kB / 271.6 MB, free: 7.352 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.461e-06/0.003554, allocations: 192 / 271.6 MB, free: 7.352 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-06/0.003561, allocations: 4.312 kB / 271.6 MB, free: 7.348 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.003565, allocations: 0.9062 kB / 271.6 MB, free: 7.348 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.365e-05/0.003589, allocations: 12.61 kB / 271.6 MB, free: 7.336 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.145e-05/0.00367, allocations: 105.2 kB / 271.7 MB, free: 7.207 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.149e-05/0.003742, allocations: 44.58 kB / 271.7 MB, free: 7.152 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.584e-05/0.003768, allocations: 11.72 kB / 271.7 MB, free: 7.137 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.356e-06/0.003776, allocations: 4 kB / 271.7 MB, free: 7.133 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.817e-05/0.003794, allocations: 33.39 kB / 271.8 MB, free: 7.09 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 9.41e-07/0.003795, allocations: 0.7812 kB / 271.8 MB, free: 7.09 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001252/0.00392, allocations: 53.72 kB / 271.8 MB, free: 7.031 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.003965, allocations: 55.91 kB / 271.9 MB, free: 6.965 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.291e-05/0.004038, allocations: 173.8 kB / 272.1 MB, free: 6.777 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.738e-06/0.004048, allocations: 25.7 kB / 272.1 MB, free: 6.746 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.216e-05/0.00409, allocations: 134.9 kB / 272.2 MB, free: 6.609 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.049e-05/0.004101, allocations: 0 / 272.2 MB, free: 6.609 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.608e-05/0.004127, allocations: 23.38 kB / 272.2 MB, free: 6.578 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003194/0.004446, allocations: 0.4883 MB / 272.7 MB, free: 6.078 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.853e-06/0.004453, allocations: 0 / 272.7 MB, free: 6.078 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.324e-06/0.00446, allocations: 4 kB / 272.7 MB, free: 6.074 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.221e-05/0.004483, allocations: 11.67 kB / 272.7 MB, free: 6.059 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.004485, allocations: 4 kB / 272.7 MB, free: 6.055 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.245e-05/0.004528, allocations: 41.72 kB / 272.8 MB, free: 6.008 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.004538, allocations: 4 kB / 272.8 MB, free: 6.004 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.004542, allocations: 3.938 kB / 272.8 MB, free: 6 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.905e-06/0.00455, allocations: 0 / 272.8 MB, free: 6 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.123e-05/0.004591, allocations: 7.984 kB / 272.8 MB, free: 5.992 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.645e-06/0.004594, allocations: 0 / 272.8 MB, free: 5.992 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.596e-06/0.004603, allocations: 0 / 272.8 MB, free: 5.992 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-06/0.004606, allocations: 4.25 kB / 272.8 MB, free: 5.988 MB / 250.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.662e-05/0.004683, allocations: 160.6 kB / 273 MB, free: 5.82 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.121e-05/0.004724, allocations: 49.66 kB / 273 MB, free: 5.766 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.217e-05/0.004746, allocations: 8 kB / 273 MB, free: 5.75 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.004748, allocations: 0 / 273 MB, free: 5.75 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.00475, allocations: 0 / 273 MB, free: 5.75 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.004753, allocations: 0 / 273 MB, free: 5.75 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.881e-05/0.004812, allocations: 105.1 kB / 273.1 MB, free: 5.621 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-06/0.004813, allocations: 4 kB / 273.1 MB, free: 5.617 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.094e-05/0.004854, allocations: 11.98 kB / 273.1 MB, free: 5.605 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-06/0.004855, allocations: 3.938 kB / 273.1 MB, free: 5.602 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.147e-06/0.00486, allocations: 0 / 273.1 MB, free: 5.602 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.004861, allocations: 4 kB / 273.1 MB, free: 5.598 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.004862, allocations: 4 kB / 273.1 MB, free: 5.594 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.083e-05/0.004903, allocations: 72.39 kB / 273.2 MB, free: 5.5 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.005e-06/0.004911, allocations: 8.219 kB / 273.2 MB, free: 5.492 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.086e-05/0.004922, allocations: 0 / 273.2 MB, free: 5.492 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.659e-05/0.004938, allocations: 4 kB / 273.2 MB, free: 5.488 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.266e-06/0.004941, allocations: 3.984 kB / 273.2 MB, free: 5.484 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-06/0.004944, allocations: 0 / 273.2 MB, free: 5.484 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.381e-05/0.004978, allocations: 131.2 kB / 273.4 MB, free: 5.355 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004978, allocations: 0 / 273.4 MB, free: 5.355 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001103/0.005088, allocations: 4 kB / 273.4 MB, free: 5.352 MB / 250.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 6.338e-05/0.005151, allocations: 103.2 kB / 273.5 MB, free: 5.242 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.845e-05/0.00522, allocations: 27.59 kB / 273.5 MB, free: 5.211 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.005221, allocations: 0 / 273.5 MB, free: 5.211 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.51e-07/0.005222, allocations: 0 / 273.5 MB, free: 5.211 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001758/0.005397, allocations: 21.36 kB / 273.5 MB, free: 5.188 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001955/0.005593, allocations: 124.8 kB / 273.6 MB, free: 5.039 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.847e-05/0.005621, allocations: 63.34 kB / 273.7 MB, free: 4.957 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.146e-05/0.005633, allocations: 0 / 273.7 MB, free: 4.957 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.517e-05/0.005678, allocations: 74.19 kB / 273.8 MB, free: 4.883 MB / 250.7 MB Notification: Performance of SimCode: time 5.91e-07/0.005679, allocations: 4.062 kB / 273.8 MB, free: 4.879 MB / 250.7 MB Notification: Performance of Templates: time 0.001856/0.007535, allocations: 0.5997 MB / 274.4 MB, free: 4.293 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) [Timeout 240] 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","",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.7376024648547173]