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.001428/0.001428, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.00145/0.00145, allocations: 148.2 kB / 24.81 MB, free: 9.27 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 1.064/1.064, allocations: 173.3 MB / 201.4 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 2.124e-06/2.124e-06, allocations: 0 / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.587e-05/1.799e-05, allocations: 6.25 kB / 268.4 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.001867/0.001885, allocations: 1.499 MB / 269.9 MB, free: 4.672 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002023/0.002087, allocations: 39.89 kB / 270 MB, free: 4.633 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.388e-05/0.002151, allocations: 0 / 270 MB, free: 4.633 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.095e-05/0.002182, allocations: 3.938 kB / 270 MB, free: 4.629 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.959e-05/0.002232, allocations: 3.938 kB / 270 MB, free: 4.625 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002476/0.002479, allocations: 27.91 kB / 270 MB, free: 4.598 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.372e-05/0.002563, allocations: 39.86 kB / 270 MB, free: 4.559 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.727e-05/0.00266, allocations: 7.984 kB / 270 MB, free: 4.551 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.431e-05/0.002744, allocations: 23.97 kB / 270.1 MB, free: 4.527 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.807e-05/0.002783, allocations: 19.92 kB / 270.1 MB, free: 4.508 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.114e-05/0.002804, allocations: 4 kB / 270.1 MB, free: 4.504 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.668e-06/0.002813, allocations: 4 kB / 270.1 MB, free: 4.5 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.903e-05/0.002832, allocations: 7.984 kB / 270.1 MB, free: 4.492 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.585e-05/0.002858, allocations: 11.94 kB / 270.1 MB, free: 4.48 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.139e-05/0.00294, allocations: 27.95 kB / 270.1 MB, free: 4.453 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.013e-06/0.002942, allocations: 0 / 270.1 MB, free: 4.453 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.12e-07/0.002942, allocations: 3.938 kB / 270.1 MB, free: 4.449 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.002945, allocations: 0 / 270.1 MB, free: 4.449 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.0003352/0.003281, allocations: 372.6 kB / 270.5 MB, free: 4.047 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.003318, allocations: 12.92 kB / 270.5 MB, free: 4.035 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.807e-05/0.003347, allocations: 12.83 kB / 270.5 MB, free: 4.023 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.003468, allocations: 128.5 kB / 270.7 MB, free: 3.871 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.003483, allocations: 4.375 kB / 270.7 MB, free: 3.867 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.296e-06/0.003492, allocations: 4.375 kB / 270.7 MB, free: 3.863 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003457/0.003837, allocations: 122.1 kB / 270.8 MB, free: 3.727 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.003844, allocations: 192 / 270.8 MB, free: 3.727 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.222e-06/0.00385, allocations: 384 / 270.8 MB, free: 3.727 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.003856, allocations: 4.375 kB / 270.8 MB, free: 3.723 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.396e-05/0.00388, allocations: 7.938 kB / 270.8 MB, free: 3.715 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.262e-05/0.003972, allocations: 101.2 kB / 270.9 MB, free: 3.59 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.569e-05/0.004038, allocations: 46.98 kB / 270.9 MB, free: 3.531 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.495e-05/0.004063, allocations: 15.72 kB / 271 MB, free: 3.512 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.486e-06/0.004072, allocations: 0 / 271 MB, free: 3.512 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.004093, allocations: 37.42 kB / 271 MB, free: 3.465 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 6.12e-07/0.004094, allocations: 0 / 271 MB, free: 3.465 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001141/0.004208, allocations: 49.69 kB / 271 MB, free: 3.41 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.004244, allocations: 55.41 kB / 271.1 MB, free: 3.344 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.381e-05/0.004308, allocations: 169.9 kB / 271.3 MB, free: 3.16 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.948e-06/0.004318, allocations: 25.7 kB / 271.3 MB, free: 3.129 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.522e-05/0.004353, allocations: 138.8 kB / 271.4 MB, free: 2.988 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.628e-06/0.004362, allocations: 0 / 271.4 MB, free: 2.988 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.008e-05/0.004392, allocations: 19.38 kB / 271.4 MB, free: 2.961 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003191/0.004711, allocations: 0.4883 MB / 271.9 MB, free: 2.461 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.332e-06/0.004718, allocations: 4 kB / 271.9 MB, free: 2.457 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.955e-06/0.004726, allocations: 0 / 271.9 MB, free: 2.457 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.232e-05/0.004748, allocations: 11.69 kB / 272 MB, free: 2.441 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.00475, allocations: 0 / 272 MB, free: 2.441 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.554e-05/0.004795, allocations: 49.7 kB / 272 MB, free: 2.387 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.004809, allocations: 4 kB / 272 MB, free: 2.383 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.004813, allocations: 3.938 kB / 272 MB, free: 2.379 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.004826, allocations: 0 / 272 MB, free: 2.379 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.375e-05/0.00487, allocations: 7.938 kB / 272 MB, free: 2.371 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.004873, allocations: 0 / 272 MB, free: 2.371 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.817e-06/0.004882, allocations: 0 / 272 MB, free: 2.371 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-06/0.004887, allocations: 7.938 kB / 272 MB, free: 2.363 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.912e-05/0.004956, allocations: 156.6 kB / 272.2 MB, free: 2.199 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.319e-05/0.005, allocations: 45.69 kB / 272.2 MB, free: 2.148 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.77e-05/0.005027, allocations: 12.27 kB / 272.2 MB, free: 2.129 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.005031, allocations: 7.984 kB / 272.2 MB, free: 2.121 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.005034, allocations: 3.984 kB / 272.2 MB, free: 2.117 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.005038, allocations: 4 kB / 272.2 MB, free: 2.113 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.034e-05/0.005099, allocations: 105.2 kB / 272.3 MB, free: 1.984 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.005099, allocations: 0 / 272.3 MB, free: 1.984 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.204e-05/0.005141, allocations: 11.98 kB / 272.4 MB, free: 1.973 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.005142, allocations: 0 / 272.4 MB, free: 1.973 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.541e-06/0.005148, allocations: 0 / 272.4 MB, free: 1.973 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.005149, allocations: 3.938 kB / 272.4 MB, free: 1.969 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.00515, allocations: 0 / 272.4 MB, free: 1.969 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.68e-05/0.005197, allocations: 76.38 kB / 272.4 MB, free: 1.871 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.703e-06/0.005204, allocations: 0 / 272.4 MB, free: 1.871 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.308e-05/0.005217, allocations: 4 kB / 272.4 MB, free: 1.867 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.606e-05/0.005233, allocations: 4 kB / 272.4 MB, free: 1.863 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.637e-06/0.005236, allocations: 3.984 kB / 272.5 MB, free: 1.859 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-06/0.005239, allocations: 0 / 272.5 MB, free: 1.859 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.751e-05/0.005277, allocations: 131.5 kB / 272.6 MB, free: 1.73 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.005277, allocations: 0 / 272.6 MB, free: 1.73 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001142/0.005391, allocations: 4 kB / 272.6 MB, free: 1.727 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.713e-05/0.005458, allocations: 99.23 kB / 272.7 MB, free: 1.621 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.82e-05/0.005517, allocations: 19.62 kB / 272.7 MB, free: 1.598 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.005519, allocations: 4 kB / 272.7 MB, free: 1.594 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.005519, allocations: 4 kB / 272.7 MB, free: 1.59 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000156/0.005675, allocations: 25.3 kB / 272.7 MB, free: 1.562 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001986/0.005874, allocations: 128.8 kB / 272.9 MB, free: 1.41 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.736e-05/0.005901, allocations: 59.34 kB / 272.9 MB, free: 1.332 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.286e-05/0.005914, allocations: 0 / 272.9 MB, free: 1.332 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.941e-05/0.005963, allocations: 74.2 kB / 273 MB, free: 1.258 MB / 250.7 MB Notification: Performance of SimCode: time 6.21e-07/0.005964, allocations: 4.062 kB / 273 MB, free: 1.254 MB / 250.7 MB Notification: Performance of Templates: time 0.001957/0.007921, allocations: 0.5946 MB / 273.6 MB, free: 0.668 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.682456359732896]