Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.SlewRateLimiter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001069/0.001069, allocations: 107.3 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001204/0.001205, allocations: 209.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 65.88 kB / 306.4 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.11, allocations: 50.53 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.003517/0.1136, allocations: 1.741 MB / 358.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001134/0.1147, allocations: 0.5065 MB / 359.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001503/0.1149, allocations: 7.938 kB / 359.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.1151, allocations: 7.938 kB / 359.2 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001047/0.1152, allocations: 23.86 kB / 359.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001858/0.1154, allocations: 35.95 kB / 359.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002078/0.1156, allocations: 123.6 kB / 359.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.1157, allocations: 21.11 kB / 359.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.407e-05/0.1158, allocations: 43.78 kB / 359.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.587e-05/0.1159, allocations: 51.7 kB / 359.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.377e-05/0.116, allocations: 12 kB / 359.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.122e-05/0.116, allocations: 8 kB / 359.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.991e-05/0.116, allocations: 19.92 kB / 359.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.953e-05/0.1161, allocations: 47.67 kB / 359.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001608/0.1163, allocations: 87.86 kB / 359.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1163, allocations: 0 / 359.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1163, allocations: 0 / 359.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.1163, allocations: 4 kB / 359.7 MB, free: 11.68 MB / 302.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.0006503/0.117, allocations: 430.9 kB / 360.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.117, allocations: 12.03 kB / 360.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.068e-05/0.1171, allocations: 8.844 kB / 360.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002728/0.1173, allocations: 213.3 kB / 360.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.1174, allocations: 12.31 kB / 360.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.834e-05/0.1174, allocations: 16.12 kB / 360.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000314/0.1177, allocations: 130.6 kB / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.1178, allocations: 3.906 kB / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.1178, allocations: 0 / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/0.1178, allocations: 4 kB / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002216/0.118, allocations: 67.88 kB / 360.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008081/0.1189, allocations: 0.5477 MB / 361.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003626/0.1192, allocations: 142.4 kB / 361.3 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/0.1194, allocations: 48.83 kB / 361.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.1194, allocations: 4 kB / 361.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.1195, allocations: 38.55 kB / 361.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.1195, allocations: 0 / 361.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001277/0.1207, allocations: 0.5135 MB / 361.9 MB, free: 9.277 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.1208, allocations: 51.41 kB / 361.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.121, allocations: 157.5 kB / 362.1 MB, free: 9.055 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.121, allocations: 25.7 kB / 362.1 MB, free: 9.023 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.655e-05/0.1211, allocations: 115.9 kB / 362.2 MB, free: 8.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.034e-05/0.1211, allocations: 43.3 kB / 362.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.015e-05/0.1212, allocations: 37.66 kB / 362.3 MB, free: 8.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1214, allocations: 318.8 kB / 362.6 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.1215, allocations: 55.95 kB / 362.6 MB, free: 8.445 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/0.1217, allocations: 83.39 kB / 362.7 MB, free: 8.352 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000297/0.122, allocations: 134.8 kB / 362.9 MB, free: 8.211 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.122, allocations: 4 kB / 362.9 MB, free: 8.207 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.00039/0.1224, allocations: 181.3 kB / 363 MB, free: 8.023 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.1224, allocations: 8.094 kB / 363.1 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.1225, allocations: 3.938 kB / 363.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.1225, allocations: 4 kB / 363.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.1226, allocations: 35.97 kB / 363.1 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.1227, allocations: 0 / 363.1 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.1228, allocations: 15.98 kB / 363.1 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.1228, allocations: 4 kB / 363.1 MB, free: 7.953 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.892e-05/0.1229, allocations: 121.8 kB / 363.2 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.74e-05/0.1229, allocations: 19.91 kB / 363.3 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.582e-05/0.123, allocations: 16.64 kB / 363.3 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.123, allocations: 4 kB / 363.3 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.123, allocations: 0 / 363.3 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.123, allocations: 0 / 363.3 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000794/0.1238, allocations: 0.4969 MB / 363.8 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1238, allocations: 0 / 363.8 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.124, allocations: 35.91 kB / 363.8 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.124, allocations: 0 / 363.8 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.124, allocations: 4.094 kB / 363.8 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.124, allocations: 8 kB / 363.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.124, allocations: 0 / 363.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005473/0.1246, allocations: 320.9 kB / 364.1 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.751e-05/0.1247, allocations: 84.92 kB / 364.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.642e-05/0.1247, allocations: 12.03 kB / 364.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.1248, allocations: 11.98 kB / 364.2 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.113e-05/0.1249, allocations: 15.92 kB / 364.3 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.1249, allocations: 4 kB / 364.3 MB, free: 6.695 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.374e-05/0.125, allocations: 110.3 kB / 364.4 MB, free: 6.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.125, allocations: 0 / 364.4 MB, free: 6.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002668/0.1253, allocations: 24 kB / 364.4 MB, free: 6.566 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.0001225/0.1254, allocations: 103.2 kB / 364.5 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003787/0.1258, allocations: 123.8 kB / 364.6 MB, free: 6.332 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.1258, allocations: 0 / 364.6 MB, free: 6.332 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001754/0.126, allocations: 72.08 kB / 364.7 MB, free: 6.262 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004907/0.1265, allocations: 47.11 kB / 364.7 MB, free: 6.219 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007066/0.1272, allocations: 360.2 kB / 365.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003378/0.1275, allocations: 0.7161 MB / 365.8 MB, free: 5.086 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.673e-05/0.1276, allocations: 17.41 kB / 365.8 MB, free: 5.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.572e-05/0.1277, allocations: 15.62 kB / 365.8 MB, free: 5.055 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1277, allocations: 0 / 365.8 MB, free: 5.055 MB / 302.1 MB Notification: Performance of Templates: time 0.004474/0.1322, allocations: 1.573 MB / 367.4 MB, free: 3.5 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.sim & ./Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.SlewRateLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches