Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Blocks.Examples.SlewRateLimiter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009342/0.0009343, allocations: 190.7 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 226.6 MB / 244.7 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007673/0.0007672, allocations: 99.02 kB / 296.8 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002279/0.0002279, allocations: 4 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.2303, allocations: 51.3 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.001477/0.2318, allocations: 1.366 MB / 409.4 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006378/0.2325, allocations: 493.9 kB / 409.9 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.736e-05/0.2325, allocations: 4 kB / 409.9 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.707e-05/0.2326, allocations: 7.922 kB / 409.9 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.293e-05/0.2327, allocations: 15.86 kB / 409.9 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001294/0.2329, allocations: 39.91 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000138/0.233, allocations: 108.2 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.2331, allocations: 22.62 kB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.213e-05/0.2332, allocations: 41.64 kB / 410.1 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.973e-05/0.2332, allocations: 35.78 kB / 410.2 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.788e-05/0.2333, allocations: 4 kB / 410.2 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.43e-05/0.2333, allocations: 4 kB / 410.2 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.839e-05/0.2333, allocations: 19.86 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.432e-05/0.2334, allocations: 62.69 kB / 410.2 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.915e-05/0.2334, allocations: 60.86 kB / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2335, allocations: 3.938 kB / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2335, allocations: 2.844 kB / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.459e-06/0.2335, allocations: 0 / 410.3 MB, free: 25.41 MB / 298.7 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.0004274/0.2339, allocations: 416.2 kB / 410.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.2339, allocations: 12.03 kB / 410.7 MB, free: 24.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.438e-05/0.234, allocations: 13.41 kB / 410.7 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001722/0.2342, allocations: 219.6 kB / 411 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.2342, allocations: 8 kB / 411 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.367e-05/0.2342, allocations: 16.12 kB / 411 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002748/0.2345, allocations: 142.4 kB / 411.1 MB, free: 24.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.2345, allocations: 0 / 411.1 MB, free: 24.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.2345, allocations: 4 kB / 411.1 MB, free: 24.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.415e-06/0.2346, allocations: 4 kB / 411.1 MB, free: 24.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001783/0.2347, allocations: 87.83 kB / 411.2 MB, free: 24.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005388/0.2353, allocations: 0.5554 MB / 411.8 MB, free: 23.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002987/0.2356, allocations: 150.5 kB / 411.9 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/0.2357, allocations: 64.81 kB / 412 MB, free: 23.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.2358, allocations: 8 kB / 412 MB, free: 23.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.167e-05/0.2358, allocations: 30.75 kB / 412 MB, free: 23.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 2.324e-06/0.2358, allocations: 0 / 412 MB, free: 23.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0009273/0.2367, allocations: 0.5564 MB / 412.6 MB, free: 22.92 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.071e-05/0.2367, allocations: 55.41 kB / 412.6 MB, free: 22.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.035e-05/0.2368, allocations: 161.4 kB / 412.8 MB, free: 22.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.889e-06/0.2369, allocations: 25.7 kB / 412.8 MB, free: 22.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.825e-05/0.2369, allocations: 111.9 kB / 412.9 MB, free: 22.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.321e-05/0.2369, allocations: 55.28 kB / 413 MB, free: 22.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-06/0.2369, allocations: 0 / 413 MB, free: 22.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.661e-05/0.237, allocations: 326.8 kB / 413.3 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.2371, allocations: 59.95 kB / 413.3 MB, free: 22.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001346/0.2373, allocations: 98.36 kB / 413.4 MB, free: 22 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002529/0.2375, allocations: 147.2 kB / 413.6 MB, free: 21.85 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.41e-07/0.2375, allocations: 4 kB / 413.6 MB, free: 21.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003175/0.2379, allocations: 201.4 kB / 413.8 MB, free: 21.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.2379, allocations: 4 kB / 413.8 MB, free: 21.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.2379, allocations: 12.03 kB / 413.8 MB, free: 21.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.2379, allocations: 3.938 kB / 413.8 MB, free: 21.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.2381, allocations: 39.92 kB / 413.8 MB, free: 21.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.2381, allocations: 7.984 kB / 413.9 MB, free: 21.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.385e-05/0.2382, allocations: 15.98 kB / 413.9 MB, free: 21.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.268e-06/0.2382, allocations: 12 kB / 413.9 MB, free: 21.55 MB / 298.7 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 6.591e-05/0.2383, allocations: 113.8 kB / 414 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.942e-05/0.2383, allocations: 15.81 kB / 414 MB, free: 21.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.367e-05/0.2383, allocations: 16.66 kB / 414 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.2383, allocations: 4 kB / 414 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.2383, allocations: 0 / 414 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.2384, allocations: 3.938 kB / 414 MB, free: 21.38 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006324/0.239, allocations: 0.5233 MB / 414.6 MB, free: 20.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.239, allocations: 0 / 414.6 MB, free: 20.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000153/0.2392, allocations: 44.05 kB / 414.6 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2392, allocations: 0 / 414.6 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.2392, allocations: 4 kB / 414.6 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.2392, allocations: 3.984 kB / 414.6 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2392, allocations: 0 / 414.6 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004508/0.2397, allocations: 352.9 kB / 415 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.588e-05/0.2397, allocations: 88.92 kB / 415 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.952e-05/0.2397, allocations: 4 kB / 415 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.2398, allocations: 20.03 kB / 415.1 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.677e-05/0.2399, allocations: 15.98 kB / 415.1 MB, free: 20.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.723e-06/0.2399, allocations: 4 kB / 415.1 MB, free: 20.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.004e-05/0.2399, allocations: 115.3 kB / 415.2 MB, free: 20.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.24, allocations: 0 / 415.2 MB, free: 20.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002244/0.2402, allocations: 24 kB / 415.2 MB, free: 20.09 MB / 298.7 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 7.744e-05/0.2403, allocations: 99.12 kB / 415.3 MB, free: 19.99 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003137/0.2406, allocations: 147.8 kB / 415.5 MB, free: 19.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2406, allocations: 4.281 kB / 415.5 MB, free: 19.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001471/0.2408, allocations: 75.83 kB / 415.5 MB, free: 19.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003946/0.2412, allocations: 35.97 kB / 415.6 MB, free: 19.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005048/0.2417, allocations: 393.6 kB / 416 MB, free: 19.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001259/0.2418, allocations: 0.7125 MB / 416.7 MB, free: 18.56 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.047e-05/0.2419, allocations: 15.44 kB / 416.7 MB, free: 18.55 MB / 298.7 MB Notification: Performance of SimCode: time 2.81e-07/0.2419, allocations: 0 / 416.7 MB, free: 18.55 MB / 298.7 MB Notification: Performance of Templates: time 0.002545/0.2444, allocations: 1.675 MB / 418.4 MB, free: 16.88 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches