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.001228/0.001228, allocations: 107.2 kB / 18.34 MB, free: 4.676 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.001135/0.001135, allocations: 188.1 kB / 19.28 MB, free: 3.75 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.35/1.35, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.00199/0.00199, allocations: 51.94 kB / 282.1 MB, free: 2.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1152, allocations: 46.62 MB / 328.7 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.003498/0.1187, allocations: 1.67 MB / 330.4 MB, free: 2.074 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009299/0.1197, allocations: 0.523 MB / 330.9 MB, free: 1.543 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.1198, allocations: 7.875 kB / 330.9 MB, free: 1.535 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001154/0.12, allocations: 11.86 kB / 330.9 MB, free: 1.523 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.71e-05/0.1201, allocations: 23.8 kB / 330.9 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001826/0.1203, allocations: 51.88 kB / 331 MB, free: 1.449 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001945/0.1205, allocations: 111.6 kB / 331.1 MB, free: 1.34 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.1206, allocations: 29.11 kB / 331.1 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.242e-05/0.1207, allocations: 47.73 kB / 331.2 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.291e-05/0.1208, allocations: 43.77 kB / 331.2 MB, free: 1.223 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.1208, allocations: 8 kB / 331.2 MB, free: 1.215 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.871e-05/0.1209, allocations: 8 kB / 331.2 MB, free: 1.207 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.369e-05/0.1209, allocations: 27.8 kB / 331.3 MB, free: 1.18 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.279e-05/0.121, allocations: 39.73 kB / 331.3 MB, free: 1.141 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001669/0.1211, allocations: 95.58 kB / 331.4 MB, free: 1.047 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.1211, allocations: 3.984 kB / 331.4 MB, free: 1.043 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1212, allocations: 4 kB / 331.4 MB, free: 1.039 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1212, allocations: 0 / 331.4 MB, free: 1.039 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.0005962/0.1218, allocations: 430.9 kB / 331.8 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.1218, allocations: 8.031 kB / 331.8 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.273e-05/0.1219, allocations: 16.75 kB / 331.8 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.1222, allocations: 212.7 kB / 332.1 MB, free: 308 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.1222, allocations: 8.375 kB / 332.1 MB, free: 300 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.96e-05/0.1222, allocations: 16.06 kB / 332.1 MB, free: 284 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000264/0.1225, allocations: 128.2 kB / 332.2 MB, free: 140 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.1225, allocations: 0 / 332.2 MB, free: 140 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.1225, allocations: 0 / 332.2 MB, free: 140 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.1225, allocations: 4 kB / 332.2 MB, free: 136 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001864/0.1227, allocations: 75.78 kB / 332.3 MB, free: 60 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007152/0.1235, allocations: 0.5477 MB / 332.8 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003204/0.1238, allocations: 130.5 kB / 333 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001358/0.1239, allocations: 64.89 kB / 333 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.124, allocations: 3.984 kB / 333 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/0.124, allocations: 34.56 kB / 333.1 MB, free: 15.2 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.452e-06/0.124, allocations: 0 / 333.1 MB, free: 15.2 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.001079/0.1251, allocations: 0.5134 MB / 333.6 MB, free: 14.64 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.821e-05/0.1251, allocations: 55.41 kB / 333.6 MB, free: 14.57 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001384/0.1253, allocations: 154.2 kB / 333.8 MB, free: 14.41 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.1253, allocations: 25.7 kB / 333.8 MB, free: 14.38 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.319e-05/0.1254, allocations: 111.9 kB / 333.9 MB, free: 14.27 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.722e-05/0.1254, allocations: 43.36 kB / 334 MB, free: 14.22 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.095e-05/0.1255, allocations: 33.72 kB / 334 MB, free: 14.18 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.934e-05/0.1256, allocations: 326.8 kB / 334.3 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.1257, allocations: 47.95 kB / 334.4 MB, free: 13.81 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001501/0.1259, allocations: 75.39 kB / 334.4 MB, free: 13.72 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002716/0.1262, allocations: 139.3 kB / 334.6 MB, free: 13.57 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.1262, allocations: 3.938 kB / 334.6 MB, free: 13.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003554/0.1265, allocations: 177.4 kB / 334.7 MB, free: 13.39 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.1265, allocations: 4 kB / 334.7 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.1266, allocations: 7.938 kB / 334.8 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.1266, allocations: 3.938 kB / 334.8 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.1267, allocations: 39.97 kB / 334.8 MB, free: 13.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.1268, allocations: 3.984 kB / 334.8 MB, free: 13.33 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.08e-05/0.1269, allocations: 20.08 kB / 334.8 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.778e-06/0.1269, allocations: 8 kB / 334.8 MB, free: 13.3 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.429e-05/0.127, allocations: 121.8 kB / 334.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.296e-05/0.127, allocations: 7.906 kB / 335 MB, free: 13.17 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.365e-05/0.1271, allocations: 24.64 kB / 335 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.1271, allocations: 0 / 335 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1271, allocations: 0 / 335 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.145e-06/0.1271, allocations: 0 / 335 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007361/0.1278, allocations: 0.493 MB / 335.5 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1278, allocations: 0 / 335.5 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.128, allocations: 36.03 kB / 335.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.128, allocations: 4 kB / 335.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.128, allocations: 4 kB / 335.5 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.128, allocations: 4 kB / 335.5 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.128, allocations: 3.938 kB / 335.5 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005249/0.1286, allocations: 321.8 kB / 335.8 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.084e-05/0.1286, allocations: 96.89 kB / 335.9 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.103e-05/0.1287, allocations: 0 / 335.9 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.1288, allocations: 15.98 kB / 335.9 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.716e-05/0.1288, allocations: 7.984 kB / 336 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.1288, allocations: 8 kB / 336 MB, free: 12.05 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.652e-05/0.1289, allocations: 116.1 kB / 336.1 MB, free: 11.94 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1289, allocations: 0 / 336.1 MB, free: 11.94 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002617/0.1292, allocations: 20 kB / 336.1 MB, free: 11.92 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 (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.0001009/0.1293, allocations: 107.3 kB / 336.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003508/0.1297, allocations: 131.9 kB / 336.3 MB, free: 11.68 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1297, allocations: 0 / 336.3 MB, free: 11.68 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.1298, allocations: 67.89 kB / 336.4 MB, free: 11.61 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003874/0.1302, allocations: 35.62 kB / 336.4 MB, free: 11.58 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006353/0.1309, allocations: 328.9 kB / 336.7 MB, free: 11.22 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.1311, allocations: 0.7045 MB / 337.5 MB, free: 10.49 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.636e-05/0.1312, allocations: 21.42 kB / 337.5 MB, free: 10.47 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.218e-05/0.1313, allocations: 15.44 kB / 337.5 MB, free: 10.46 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1313, allocations: 0 / 337.5 MB, free: 10.46 MB / 286.1 MB Notification: Performance of Templates: time 0.004397/0.1357, allocations: 1.701 MB / 339.2 MB, free: 8.762 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.makefile (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 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,limit_a.y,limit_v.y,positionSmoothed.y Variables in the result:aMax,limit_a.Falling,limit_a.Rising,limit_a.Td,limit_a.initType,limit_a.strict,limit_a.y,limit_a.y_start,limit_v.Falling,limit_v.Rising,limit_v.Td,limit_v.initType,limit_v.strict,limit_v.y,limit_v.y_start,positionSmoothed.initType,positionSmoothed.k,positionSmoothed.y,positionSmoothed.y_start,positionStep.height,positionStep.offset,positionStep.startTime,time,vMax