Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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.Blocks.Examples.SlewRateLimiter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|limit_a.y|limit_v.y|positionSmoothed.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.0009612/0.0009611, allocations: 90.31 kB / 16.65 MB, free: 6.59 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.001147/0.001147, allocations: 184.7 kB / 17.56 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 223.3 MB / 241.6 MB, free: 112 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002641/0.0002641, allocations: 11.94 kB / 301.4 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1015, allocations: 50.41 MB / 351.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002506/0.1041, allocations: 1.382 MB / 353.2 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.1052, allocations: 482.9 kB / 353.7 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.1053, allocations: 4 kB / 353.7 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.1054, allocations: 11.81 kB / 353.7 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.491e-05/0.1055, allocations: 15.86 kB / 353.7 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000179/0.1057, allocations: 43.95 kB / 353.7 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001869/0.1059, allocations: 115.5 kB / 353.9 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.106, allocations: 29.11 kB / 353.9 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.913e-05/0.1061, allocations: 27.86 kB / 353.9 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.173e-05/0.1062, allocations: 51.62 kB / 354 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.051e-05/0.1062, allocations: 4 kB / 354 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.745e-05/0.1062, allocations: 4 kB / 354 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.506e-05/0.1063, allocations: 11.94 kB / 354 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.368e-05/0.1064, allocations: 65.44 kB / 354 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001286/0.1065, allocations: 91.78 kB / 354.1 MB, free: 1.359 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1065, allocations: 0 / 354.1 MB, free: 1.359 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1065, allocations: 4 kB / 354.1 MB, free: 1.355 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1065, allocations: 0 / 354.1 MB, free: 1.355 MB / 286.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.0006491/0.1072, allocations: 415 kB / 354.5 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.1072, allocations: 12.03 kB / 354.6 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.137e-05/0.1073, allocations: 12.84 kB / 354.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002554/0.1075, allocations: 219.6 kB / 354.8 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.1076, allocations: 11.94 kB / 354.8 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.196e-05/0.1076, allocations: 12 kB / 354.8 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000406/0.108, allocations: 150.8 kB / 355 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.1081, allocations: 0 / 355 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.1081, allocations: 0 / 355 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.1081, allocations: 4 kB / 355 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002185/0.1083, allocations: 83.88 kB / 355 MB, free: 368 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007586/0.1091, allocations: 0.5555 MB / 355.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00039/0.1095, allocations: 150.4 kB / 355.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001644/0.1097, allocations: 68.81 kB / 355.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.306e-05/0.1097, allocations: 4 kB / 355.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.411e-05/0.1097, allocations: 34.56 kB / 355.9 MB, free: 15.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.313e-06/0.1097, allocations: 0 / 355.9 MB, free: 15.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001244/0.111, allocations: 0.5684 MB / 356.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/0.111, allocations: 55.41 kB / 356.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.1112, allocations: 154.2 kB / 356.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.1112, allocations: 25.7 kB / 356.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.961e-05/0.1113, allocations: 111.8 kB / 356.8 MB, free: 14.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.164e-05/0.1113, allocations: 47.36 kB / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.384e-05/0.1113, allocations: 17.72 kB / 356.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.1115, allocations: 322.8 kB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/0.1116, allocations: 63.95 kB / 357.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.1118, allocations: 91.39 kB / 357.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005131/0.1124, allocations: 155.3 kB / 357.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1124, allocations: 0 / 357.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004797/0.1129, allocations: 202.2 kB / 357.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.1129, allocations: 8.094 kB / 357.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.1129, allocations: 0 / 357.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.1129, allocations: 4 kB / 357.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.1131, allocations: 43.97 kB / 357.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.1131, allocations: 4 kB / 357.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.455e-05/0.1132, allocations: 19.92 kB / 357.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.1133, allocations: 8 kB / 357.7 MB, free: 13.47 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.813e-05/0.1134, allocations: 121.8 kB / 357.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.511e-05/0.1134, allocations: 11.84 kB / 357.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.967e-05/0.1135, allocations: 20.7 kB / 357.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.1135, allocations: 0 / 357.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1135, allocations: 4 kB / 357.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.1135, allocations: 0 / 357.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008624/0.1144, allocations: 0.5194 MB / 358.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1144, allocations: 0 / 358.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001796/0.1146, allocations: 47.97 kB / 358.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.1146, allocations: 4.734 kB / 358.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.1146, allocations: 8 kB / 358.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.1146, allocations: 0 / 358.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1146, allocations: 0 / 358.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006347/0.1153, allocations: 353 kB / 358.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.398e-05/0.1153, allocations: 96.95 kB / 358.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.407e-05/0.1154, allocations: 11.94 kB / 358.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.1155, allocations: 15.98 kB / 358.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.953e-05/0.1155, allocations: 19.92 kB / 358.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-06/0.1156, allocations: 7.938 kB / 359 MB, free: 12.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.154e-05/0.1157, allocations: 117.5 kB / 359.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1157, allocations: 0 / 359.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002638/0.1159, allocations: 20 kB / 359.1 MB, free: 11.99 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001072/0.116, allocations: 95.19 kB / 359.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004054/0.1165, allocations: 143.9 kB / 359.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.1165, allocations: 4.188 kB / 359.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002022/0.1167, allocations: 79.83 kB / 359.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004491/0.1171, allocations: 39.97 kB / 359.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006703/0.1178, allocations: 385.9 kB / 359.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.1181, allocations: 0.7087 MB / 360.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.59e-05/0.1182, allocations: 17.42 kB / 360.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.792e-05/0.1183, allocations: 15.44 kB / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1183, allocations: 7.875 kB / 360.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of Templates: time 0.004327/0.1226, allocations: 1.499 MB / 362.1 MB, free: 8.961 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches