Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Blocks.Examples.SlewRateLimiter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|limit_a.y|limit_v.y|positionSmoothed.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter") translateModel(Modelica.Blocks.Examples.SlewRateLimiter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|limit_a.y|limit_v.y|positionSmoothed.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008979/0.000898, allocations: 98.88 kB / 16.94 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009124/0.0009124, allocations: 173.7 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.825/1.825, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006172/0.0006172, allocations: 12 kB / 280.7 MB, free: 3.766 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1448, allocations: 47.57 MB / 328.3 MB, free: 4.125 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002225/0.147, allocations: 1.348 MB / 329.7 MB, free: 2.762 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.1481, allocations: 0.4884 MB / 330.2 MB, free: 2.266 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.1483, allocations: 4 kB / 330.2 MB, free: 2.262 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.309e-05/0.1483, allocations: 7.922 kB / 330.2 MB, free: 2.254 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000153/0.1485, allocations: 19.91 kB / 330.2 MB, free: 2.234 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002106/0.1487, allocations: 43.89 kB / 330.2 MB, free: 2.191 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002541/0.149, allocations: 79.77 kB / 330.3 MB, free: 2.113 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001392/0.1491, allocations: 28.89 kB / 330.3 MB, free: 2.086 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.118e-05/0.1492, allocations: 27.86 kB / 330.4 MB, free: 2.059 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.1493, allocations: 43.77 kB / 330.4 MB, free: 2.016 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.962e-05/0.1493, allocations: 4 kB / 330.4 MB, free: 2.012 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.802e-05/0.1494, allocations: 4 kB / 330.4 MB, free: 2.008 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.474e-05/0.1494, allocations: 15.92 kB / 330.4 MB, free: 1.992 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.796e-05/0.1495, allocations: 37.64 kB / 330.5 MB, free: 1.949 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001428/0.1496, allocations: 60.11 kB / 330.5 MB, free: 1.891 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1496, allocations: 0 / 330.5 MB, free: 1.891 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1496, allocations: 0 / 330.5 MB, free: 1.891 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.1496, allocations: 0 / 330.5 MB, free: 1.891 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006946/0.1503, allocations: 430.8 kB / 330.9 MB, free: 1.422 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.1504, allocations: 8.031 kB / 330.9 MB, free: 1.414 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.742e-05/0.1505, allocations: 11.91 kB / 331 MB, free: 1.402 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003493/0.1508, allocations: 199.4 kB / 331.2 MB, free: 1.168 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.631e-05/0.1509, allocations: 11.95 kB / 331.2 MB, free: 1.156 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.055e-05/0.1509, allocations: 15.91 kB / 331.2 MB, free: 1.141 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003405/0.1513, allocations: 136.1 kB / 331.3 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.1513, allocations: 8 kB / 331.3 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.1513, allocations: 3.984 kB / 331.3 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.454e-05/0.1514, allocations: 7.938 kB / 331.3 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002345/0.1516, allocations: 75.89 kB / 331.4 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009625/0.1526, allocations: 0.5556 MB / 332 MB, free: 292 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003749/0.153, allocations: 154.5 kB / 332.1 MB, free: 128 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.153, allocations: 7.938 kB / 332.1 MB, free: 120 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.153, allocations: 38.69 kB / 332.2 MB, free: 72 kB / 270.1 MB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.153, allocations: 0 / 332.2 MB, free: 72 kB / 270.1 MB Notification: Performance of matching and sorting (n=12): time 0.001379/0.1544, allocations: 0.5526 MB / 332.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.173e-05/0.1545, allocations: 55.34 kB / 332.8 MB, free: 15.39 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.1546, allocations: 158.2 kB / 332.9 MB, free: 15.23 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.1547, allocations: 25.7 kB / 332.9 MB, free: 15.2 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.1548, allocations: 112 kB / 333.1 MB, free: 15.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.754e-05/0.1549, allocations: 47.27 kB / 333.1 MB, free: 15.04 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.057e-06/0.1549, allocations: 4 kB / 333.1 MB, free: 15.04 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1551, allocations: 326.8 kB / 333.4 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002278/0.1553, allocations: 59.95 kB / 333.5 MB, free: 14.65 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001804/0.1555, allocations: 91.39 kB / 333.6 MB, free: 14.55 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002614/0.1558, allocations: 67.97 kB / 333.6 MB, free: 14.48 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1558, allocations: 0 / 333.6 MB, free: 14.48 MB / 286.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0005578/0.1563, allocations: 205.3 kB / 333.8 MB, free: 14.28 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.1564, allocations: 8 kB / 333.8 MB, free: 14.27 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.1564, allocations: 0 / 333.8 MB, free: 14.27 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.1564, allocations: 0 / 333.8 MB, free: 14.27 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.1566, allocations: 52.97 kB / 333.9 MB, free: 14.22 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.1566, allocations: 0 / 333.9 MB, free: 14.22 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.768e-05/0.1567, allocations: 15.98 kB / 333.9 MB, free: 14.2 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.1567, allocations: 4 kB / 333.9 MB, free: 14.2 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (positionSmoothed.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001214/0.1569, allocations: 133.7 kB / 334 MB, free: 14.06 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.653e-05/0.1569, allocations: 11.86 kB / 334.1 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.521e-05/0.157, allocations: 20.72 kB / 334.1 MB, free: 14.02 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.157, allocations: 0 / 334.1 MB, free: 14.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.157, allocations: 0 / 334.1 MB, free: 14.02 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.157, allocations: 3.984 kB / 334.1 MB, free: 14.02 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008395/0.1578, allocations: 0.5194 MB / 334.6 MB, free: 13.44 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.1579, allocations: 4 kB / 334.6 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.158, allocations: 35.97 kB / 334.6 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.158, allocations: 0 / 334.6 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.1581, allocations: 8 kB / 334.7 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.1581, allocations: 3.938 kB / 334.7 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.1581, allocations: 4.062 kB / 334.7 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000633/0.1587, allocations: 372.4 kB / 335 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.774e-05/0.1588, allocations: 88.92 kB / 335.1 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.64e-05/0.1588, allocations: 8 kB / 335.1 MB, free: 12.87 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.1589, allocations: 16.03 kB / 335.1 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.89e-05/0.159, allocations: 23.86 kB / 335.2 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.955e-06/0.159, allocations: 4 kB / 335.2 MB, free: 12.83 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001154/0.1592, allocations: 115.9 kB / 335.3 MB, free: 12.71 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1592, allocations: 0 / 335.3 MB, free: 12.71 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002535/0.1594, allocations: 20 kB / 335.3 MB, free: 12.7 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (v.u,positionSmoothed.y,a.u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001415/0.1596, allocations: 99.23 kB / 335.4 MB, free: 12.59 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004022/0.16, allocations: 144.1 kB / 335.5 MB, free: 12.45 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.16, allocations: 0 / 335.5 MB, free: 12.45 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001787/0.1602, allocations: 80.2 kB / 335.6 MB, free: 12.37 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004074/0.1606, allocations: 39.14 kB / 335.6 MB, free: 12.33 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009622/0.1616, allocations: 381.9 kB / 336 MB, free: 11.93 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000463/0.1621, allocations: 0.7126 MB / 336.7 MB, free: 11.19 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.287e-05/0.1621, allocations: 13.38 kB / 336.7 MB, free: 11.18 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.397e-05/0.1622, allocations: 19.42 kB / 336.8 MB, free: 11.16 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1622, allocations: 4 kB / 336.8 MB, free: 11.16 MB / 286.1 MB Notification: Performance of Templates: time 0.005035/0.1673, allocations: 1.43 MB / 338.2 MB, free: 9.734 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches