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.001034/0.001034, allocations: 75.91 kB / 21.18 MB, free: 3.395 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.0009331/0.0009331, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9654/0.9654, allocations: 173.4 MB / 201.1 MB, free: 9.336 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.703e-06/1.703e-06, allocations: 0 / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.489e-05/1.659e-05, allocations: 2.312 kB / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.001767/0.001783, allocations: 1.51 MB / 269.5 MB, free: 4.91 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001835/0.001967, allocations: 35.78 kB / 269.5 MB, free: 4.875 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.052e-05/0.002027, allocations: 4 kB / 269.5 MB, free: 4.871 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.834e-05/0.002056, allocations: 3.938 kB / 269.6 MB, free: 4.867 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.072e-05/0.002096, allocations: 0 / 269.6 MB, free: 4.867 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002264/0.002323, allocations: 31.91 kB / 269.6 MB, free: 4.836 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.806e-05/0.002401, allocations: 43.84 kB / 269.6 MB, free: 4.793 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.618e-05/0.002487, allocations: 0 / 269.6 MB, free: 4.793 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.5e-05/0.002552, allocations: 23.97 kB / 269.7 MB, free: 4.77 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.559e-05/0.002588, allocations: 19.92 kB / 269.7 MB, free: 4.75 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.002606, allocations: 4 kB / 269.7 MB, free: 4.746 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.867e-06/0.002615, allocations: 4 kB / 269.7 MB, free: 4.742 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.126e-05/0.002637, allocations: 11.98 kB / 269.7 MB, free: 4.73 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.939e-05/0.002666, allocations: 7.938 kB / 269.7 MB, free: 4.723 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.547e-05/0.002751, allocations: 27.95 kB / 269.7 MB, free: 4.695 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.814e-06/0.002753, allocations: 0 / 269.7 MB, free: 4.695 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.002754, allocations: 0 / 269.7 MB, free: 4.695 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.346e-06/0.002757, allocations: 0 / 269.7 MB, free: 4.695 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.0003602/0.003118, allocations: 376.6 kB / 270.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.003156, allocations: 12.86 kB / 270.1 MB, free: 4.277 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.794e-05/0.003194, allocations: 12.88 kB / 270.1 MB, free: 4.266 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001487/0.003343, allocations: 132.5 kB / 270.2 MB, free: 4.109 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.003363, allocations: 384 / 270.2 MB, free: 4.109 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.351e-05/0.003377, allocations: 4.375 kB / 270.3 MB, free: 4.105 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002474/0.003624, allocations: 118.2 kB / 270.4 MB, free: 3.973 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.003635, allocations: 192 / 270.4 MB, free: 3.973 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.003645, allocations: 384 / 270.4 MB, free: 3.973 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.156e-06/0.003653, allocations: 384 / 270.4 MB, free: 3.973 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.51e-05/0.003688, allocations: 19.88 kB / 270.4 MB, free: 3.953 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.509e-05/0.003783, allocations: 120.6 kB / 270.5 MB, free: 3.801 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.486e-05/0.003858, allocations: 43.05 kB / 270.5 MB, free: 3.746 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.558e-05/0.003894, allocations: 19.72 kB / 270.6 MB, free: 3.723 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.776e-06/0.003903, allocations: 0 / 270.6 MB, free: 3.723 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.003927, allocations: 37.42 kB / 270.6 MB, free: 3.676 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 5.21e-07/0.003927, allocations: 0 / 270.6 MB, free: 3.676 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001439/0.004071, allocations: 57.62 kB / 270.7 MB, free: 3.613 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.004112, allocations: 55.41 kB / 270.7 MB, free: 3.547 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.605e-05/0.004188, allocations: 169.9 kB / 270.9 MB, free: 3.363 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.688e-06/0.004198, allocations: 25.7 kB / 270.9 MB, free: 3.332 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.155e-05/0.004239, allocations: 134.9 kB / 271 MB, free: 3.195 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.144e-05/0.00425, allocations: 0 / 271 MB, free: 3.195 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.592e-05/0.004276, allocations: 23.38 kB / 271.1 MB, free: 3.164 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.004388, allocations: 496.1 kB / 271.5 MB, free: 2.668 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.294e-06/0.004395, allocations: 0 / 271.5 MB, free: 2.668 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.652e-06/0.004402, allocations: 4 kB / 271.5 MB, free: 2.664 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.7e-05/0.004429, allocations: 15.62 kB / 271.6 MB, free: 2.645 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.00443, allocations: 4 kB / 271.6 MB, free: 2.641 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.528e-05/0.004475, allocations: 41.64 kB / 271.6 MB, free: 2.594 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.004486, allocations: 12.03 kB / 271.6 MB, free: 2.582 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.00449, allocations: 0 / 271.6 MB, free: 2.582 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.004504, allocations: 0 / 271.6 MB, free: 2.582 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.914e-05/0.004553, allocations: 4 kB / 271.6 MB, free: 2.578 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.004558, allocations: 0 / 271.6 MB, free: 2.578 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.067e-06/0.004567, allocations: 3.938 kB / 271.6 MB, free: 2.574 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.405e-06/0.00457, allocations: 0 / 271.6 MB, free: 2.574 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 6.135e-05/0.004631, allocations: 160.6 kB / 271.8 MB, free: 2.406 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002013/0.004832, allocations: 53.8 kB / 271.8 MB, free: 2.348 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.947e-05/0.004862, allocations: 8 kB / 271.8 MB, free: 2.332 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.004863, allocations: 0 / 271.8 MB, free: 2.332 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.004869, allocations: 11.98 kB / 271.9 MB, free: 2.32 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.004873, allocations: 3.938 kB / 271.9 MB, free: 2.316 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.925e-05/0.004922, allocations: 116.6 kB / 272 MB, free: 2.168 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.004923, allocations: 0 / 272 MB, free: 2.168 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.436e-05/0.004967, allocations: 11.98 kB / 272 MB, free: 2.156 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.004969, allocations: 0 / 272 MB, free: 2.156 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.493e-06/0.004975, allocations: 0 / 272 MB, free: 2.156 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.004977, allocations: 4 kB / 272 MB, free: 2.152 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.004979, allocations: 3.984 kB / 272 MB, free: 2.148 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.254e-05/0.005052, allocations: 96.31 kB / 272.1 MB, free: 2.031 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.933e-06/0.005059, allocations: 7.953 kB / 272.1 MB, free: 2.023 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.005072, allocations: 4 kB / 272.1 MB, free: 2.02 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.73e-05/0.005089, allocations: 3.984 kB / 272.1 MB, free: 2.016 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.405e-06/0.005092, allocations: 0 / 272.1 MB, free: 2.016 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-06/0.005095, allocations: 4 kB / 272.1 MB, free: 2.012 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.376e-05/0.005129, allocations: 127.2 kB / 272.2 MB, free: 1.887 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005129, allocations: 0 / 272.2 MB, free: 1.887 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001156/0.005245, allocations: 4 kB / 272.2 MB, free: 1.883 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.464e-05/0.005309, allocations: 103.2 kB / 272.3 MB, free: 1.773 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.84e-05/0.005398, allocations: 19.69 kB / 272.4 MB, free: 1.75 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.005399, allocations: 0 / 272.4 MB, free: 1.75 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.52e-07/0.0054, allocations: 3.938 kB / 272.4 MB, free: 1.746 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001899/0.00559, allocations: 25.91 kB / 272.4 MB, free: 1.719 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002336/0.005824, allocations: 124.8 kB / 272.5 MB, free: 1.57 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.035e-05/0.005854, allocations: 59.34 kB / 272.6 MB, free: 1.492 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.244e-05/0.005866, allocations: 0 / 272.6 MB, free: 1.492 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.731e-05/0.005894, allocations: 12.5 kB / 272.6 MB, free: 1.48 MB / 250.7 MB Notification: Performance of SimCode: time 5.01e-07/0.005894, allocations: 0 / 272.6 MB, free: 1.48 MB / 250.7 MB Notification: Performance of Templates: time 0.002032/0.007926, allocations: 0.5765 MB / 273.2 MB, free: 0.918 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.7894571162760258]