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.001385/0.001385, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009074/0.0009074, allocations: 139.9 kB / 24.89 MB, free: 9.207 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.987/0.987, allocations: 173.3 MB / 201.5 MB, free: 9.215 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.422e-06/1.422e-06, allocations: 0 / 268.5 MB, free: 6.164 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.649e-05/1.791e-05, allocations: 2.312 kB / 268.5 MB, free: 6.16 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.002595/0.002613, allocations: 1.561 MB / 270.1 MB, free: 4.586 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002044/0.002818, allocations: 39.84 kB / 270.1 MB, free: 4.547 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.337e-05/0.002881, allocations: 0 / 270.1 MB, free: 4.547 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.904e-05/0.00291, allocations: 3.938 kB / 270.1 MB, free: 4.543 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.138e-05/0.002962, allocations: 7.938 kB / 270.1 MB, free: 4.535 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002425/0.003204, allocations: 35.83 kB / 270.2 MB, free: 4.5 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.698e-05/0.003291, allocations: 31.92 kB / 270.2 MB, free: 4.469 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.629e-05/0.003367, allocations: 4 kB / 270.2 MB, free: 4.465 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.867e-05/0.003446, allocations: 27.91 kB / 270.2 MB, free: 4.438 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.012e-05/0.003486, allocations: 19.97 kB / 270.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.921e-05/0.003505, allocations: 4 kB / 270.3 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.014e-05/0.003515, allocations: 4 kB / 270.3 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.867e-05/0.003534, allocations: 4 kB / 270.3 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.982e-05/0.003564, allocations: 15.92 kB / 270.3 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.875e-05/0.003653, allocations: 27.95 kB / 270.3 MB, free: 4.363 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.843e-06/0.003654, allocations: 0 / 270.3 MB, free: 4.363 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.003655, allocations: 0 / 270.3 MB, free: 4.363 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.106e-06/0.003658, allocations: 0 / 270.3 MB, free: 4.363 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.0003385/0.003997, allocations: 256.8 kB / 270.6 MB, free: 4.086 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.00403, allocations: 8.922 kB / 270.6 MB, free: 4.078 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.846e-05/0.004059, allocations: 8.938 kB / 270.6 MB, free: 4.07 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.004206, allocations: 125.6 kB / 270.7 MB, free: 3.922 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.004223, allocations: 4.375 kB / 270.7 MB, free: 3.918 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.005e-05/0.004233, allocations: 8.359 kB / 270.7 MB, free: 3.91 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002074/0.00444, allocations: 104.5 kB / 270.8 MB, free: 3.793 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.004447, allocations: 192 / 270.8 MB, free: 3.793 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-06/0.004454, allocations: 384 / 270.8 MB, free: 3.793 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.004461, allocations: 8.375 kB / 270.8 MB, free: 3.785 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.42e-05/0.004495, allocations: 15.86 kB / 270.8 MB, free: 3.77 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.163e-05/0.004567, allocations: 57.05 kB / 270.9 MB, free: 3.699 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.039e-05/0.004637, allocations: 30.56 kB / 270.9 MB, free: 3.66 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.667e-05/0.004664, allocations: 16.84 kB / 270.9 MB, free: 3.641 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.823e-06/0.004671, allocations: 0 / 270.9 MB, free: 3.641 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.323e-05/0.004694, allocations: 34.56 kB / 271 MB, free: 3.598 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 7.01e-07/0.004695, allocations: 0 / 271 MB, free: 3.598 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001074/0.004802, allocations: 45.62 kB / 271 MB, free: 3.547 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.004846, allocations: 59.41 kB / 271.1 MB, free: 3.477 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.951e-05/0.004915, allocations: 110.7 kB / 271.2 MB, free: 3.355 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.004928, allocations: 29.7 kB / 271.2 MB, free: 3.32 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.379e-05/0.004952, allocations: 80.14 kB / 271.3 MB, free: 3.238 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.848e-06/0.004962, allocations: 3.984 kB / 271.3 MB, free: 3.234 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.823e-05/0.00499, allocations: 21.64 kB / 271.3 MB, free: 3.207 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.932e-05/0.005079, allocations: 314.8 kB / 271.6 MB, free: 2.891 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.871e-06/0.005085, allocations: 4 kB / 271.6 MB, free: 2.887 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.33e-06/0.00509, allocations: 0 / 271.6 MB, free: 2.887 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.187e-05/0.005112, allocations: 8.859 kB / 271.6 MB, free: 2.875 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.005114, allocations: 0 / 271.6 MB, free: 2.875 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.995e-05/0.005164, allocations: 49.69 kB / 271.7 MB, free: 2.82 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.005176, allocations: 4 kB / 271.7 MB, free: 2.816 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.005181, allocations: 0 / 271.7 MB, free: 2.816 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.005192, allocations: 0 / 271.7 MB, free: 2.816 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.969e-05/0.005232, allocations: 4 kB / 271.7 MB, free: 2.812 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.435e-06/0.005234, allocations: 0 / 271.7 MB, free: 2.812 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.132e-05/0.005245, allocations: 0 / 271.7 MB, free: 2.812 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.467e-06/0.005249, allocations: 4 kB / 271.7 MB, free: 2.809 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 5.779e-05/0.005307, allocations: 109.8 kB / 271.8 MB, free: 2.691 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.702e-05/0.005354, allocations: 45.62 kB / 271.8 MB, free: 2.641 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.387e-05/0.005377, allocations: 16.02 kB / 271.9 MB, free: 2.621 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.005379, allocations: 240 / 271.9 MB, free: 2.621 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.005381, allocations: 0 / 271.9 MB, free: 2.621 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.005385, allocations: 4 kB / 271.9 MB, free: 2.617 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.819e-05/0.005443, allocations: 77.77 kB / 271.9 MB, free: 2.523 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.005445, allocations: 3.984 kB / 271.9 MB, free: 2.52 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.476e-05/0.0055, allocations: 12 kB / 272 MB, free: 2.508 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-06/0.005501, allocations: 0 / 272 MB, free: 2.508 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.742e-06/0.005508, allocations: 3.984 kB / 272 MB, free: 2.504 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.005509, allocations: 0 / 272 MB, free: 2.504 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.00551, allocations: 0 / 272 MB, free: 2.504 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.349e-05/0.005553, allocations: 61.08 kB / 272 MB, free: 2.426 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.023e-06/0.00556, allocations: 4 kB / 272 MB, free: 2.422 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.005573, allocations: 3.938 kB / 272 MB, free: 2.418 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.523e-05/0.005599, allocations: 7.984 kB / 272 MB, free: 2.41 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.414e-06/0.005601, allocations: 0 / 272 MB, free: 2.41 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.447e-06/0.005605, allocations: 3.938 kB / 272 MB, free: 2.406 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.485e-05/0.005619, allocations: 13.16 kB / 272 MB, free: 2.391 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.005619, allocations: 0 / 272 MB, free: 2.391 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001647/0.005784, allocations: 4 kB / 272.1 MB, free: 2.387 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 7.463e-05/0.005859, allocations: 84.42 kB / 272.1 MB, free: 2.297 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.715e-05/0.005916, allocations: 12.86 kB / 272.1 MB, free: 2.281 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.005918, allocations: 0 / 272.1 MB, free: 2.281 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.804e-06/0.00592, allocations: 4 kB / 272.2 MB, free: 2.277 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001422/0.006062, allocations: 28.62 kB / 272.2 MB, free: 2.25 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002268/0.006289, allocations: 123.1 kB / 272.3 MB, free: 2.105 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.305e-05/0.006322, allocations: 59.34 kB / 272.4 MB, free: 2.027 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.37e-05/0.006336, allocations: 0 / 272.4 MB, free: 2.027 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.28e-05/0.006389, allocations: 63.36 kB / 272.4 MB, free: 1.965 MB / 250.7 MB Notification: Performance of SimCode: time 6.91e-07/0.006389, allocations: 4.062 kB / 272.4 MB, free: 1.961 MB / 250.7 MB Notification: Performance of Templates: time 0.002336/0.008726, allocations: 0.5875 MB / 273 MB, free: 1.379 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 -s gbode -gbm=radauIIA3 -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.390968694817275]