Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001434/0.001433, allocations: 178.8 kB / 8.363 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.283/2.283, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001165/0.001165, allocations: 94.97 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.157e-05/3.156e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3461/0.3462, allocations: 47.56 MB / 362.4 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1248/0.4711, allocations: 75.78 MB / 438.2 MB, free: 10.52 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.4714, allocations: 67.97 kB / 438.3 MB, free: 10.46 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01057/0.482, allocations: 2.369 MB / 440.6 MB, free: 8.109 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.482, allocations: 0 / 440.6 MB, free: 8.109 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.426e-05/0.4821, allocations: 8.969 kB / 440.6 MB, free: 8.102 MB / 331.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.0006622/0.4827, allocations: 411.2 kB / 441 MB, free: 7.66 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.4828, allocations: 12.03 kB / 441.1 MB, free: 7.648 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.189e-05/0.4829, allocations: 7.906 kB / 441.1 MB, free: 7.641 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003206/0.4832, allocations: 208.2 kB / 441.3 MB, free: 7.395 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.4832, allocations: 4 kB / 441.3 MB, free: 7.391 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/0.4833, allocations: 18.05 kB / 441.3 MB, free: 7.375 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001445/0.4834, allocations: 35.98 kB / 441.3 MB, free: 7.34 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002231/0.4837, allocations: 99.09 kB / 441.4 MB, free: 7.234 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.4837, allocations: 0 / 441.4 MB, free: 7.234 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.4837, allocations: 0 / 441.4 MB, free: 7.234 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.4837, allocations: 4.75 kB / 441.4 MB, free: 7.23 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009813/0.4847, allocations: 0.5149 MB / 441.9 MB, free: 6.672 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001968/0.485, allocations: 74.52 kB / 442 MB, free: 6.59 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.722e-05/0.485, allocations: 24.86 kB / 442 MB, free: 6.562 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.4851, allocations: 3.984 kB / 442 MB, free: 6.559 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.4851, allocations: 38.56 kB / 442.1 MB, free: 6.512 MB / 331.1 MB Notification: Performance of pre-optimization done (n=9): time 1.994e-06/0.4851, allocations: 0 / 442.1 MB, free: 6.512 MB / 331.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007681/0.4859, allocations: 344 kB / 442.4 MB, free: 6.125 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/0.486, allocations: 55.41 kB / 442.5 MB, free: 6.059 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001787/0.4862, allocations: 133.5 kB / 442.6 MB, free: 5.922 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.099e-05/0.4862, allocations: 25.7 kB / 442.6 MB, free: 5.891 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.4863, allocations: 178.6 kB / 442.8 MB, free: 5.711 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.013e-05/0.4864, allocations: 33.03 kB / 442.8 MB, free: 5.68 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.524e-06/0.4864, allocations: 4 kB / 442.8 MB, free: 5.676 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.4865, allocations: 318.8 kB / 443.1 MB, free: 5.355 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.749e-05/0.4866, allocations: 24 kB / 443.2 MB, free: 5.332 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.924e-05/0.4867, allocations: 51.38 kB / 443.2 MB, free: 5.27 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.181e-05/0.4868, allocations: 31.92 kB / 443.3 MB, free: 5.238 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4868, allocations: 4 kB / 443.3 MB, free: 5.234 MB / 331.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002673/0.4871, allocations: 101.6 kB / 443.4 MB, free: 5.129 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.4872, allocations: 4 kB / 443.4 MB, free: 5.125 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.4872, allocations: 0 / 443.4 MB, free: 5.125 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.4872, allocations: 7.953 kB / 443.4 MB, free: 5.117 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003047/0.4875, allocations: 33.23 kB / 443.4 MB, free: 5.086 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/0.4875, allocations: 5.125 kB / 443.4 MB, free: 5.082 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/0.4877, allocations: 19.98 kB / 443.4 MB, free: 5.062 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.4877, allocations: 8 kB / 443.4 MB, free: 5.055 MB / 331.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001018/0.4879, allocations: 108.9 kB / 443.5 MB, free: 4.941 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002225/0.4881, allocations: 93.38 kB / 443.6 MB, free: 4.844 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.286e-05/0.4882, allocations: 12.8 kB / 443.6 MB, free: 4.832 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.653e-05/0.4882, allocations: 12.62 kB / 443.7 MB, free: 4.824 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.4882, allocations: 4 kB / 443.7 MB, free: 4.82 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.4883, allocations: 0 / 443.7 MB, free: 4.82 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.4883, allocations: 3.984 kB / 443.7 MB, free: 4.816 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007259/0.489, allocations: 379.7 kB / 444 MB, free: 4.402 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.489, allocations: 3.953 kB / 444 MB, free: 4.398 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003114/0.4894, allocations: 43.94 kB / 444.1 MB, free: 4.355 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.4894, allocations: 0 / 444.1 MB, free: 4.355 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.4894, allocations: 0 / 444.1 MB, free: 4.355 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.121e-06/0.4894, allocations: 4.625 kB / 444.1 MB, free: 4.352 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.4894, allocations: 0 / 444.1 MB, free: 4.352 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003859/0.4898, allocations: 237.8 kB / 444.3 MB, free: 4.094 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.918e-05/0.4899, allocations: 89.02 kB / 444.4 MB, free: 3.988 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.194e-05/0.49, allocations: 4 kB / 444.4 MB, free: 3.984 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001893/0.4902, allocations: 18.09 kB / 444.4 MB, free: 3.969 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.173e-05/0.4902, allocations: 7.984 kB / 444.4 MB, free: 3.961 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.4902, allocations: 0 / 444.4 MB, free: 3.961 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001237/0.4904, allocations: 116.3 kB / 444.5 MB, free: 3.848 MB / 331.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4904, allocations: 0 / 444.5 MB, free: 3.848 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0003653/0.4908, allocations: 23.94 kB / 444.6 MB, free: 3.824 MB / 331.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (v.u,limit_a.y,positionSmoothed.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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.0007964/0.4916, allocations: 0.829 MB / 445.4 MB, free: 2.961 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0002417/0.4918, allocations: 77 kB / 445.5 MB, free: 2.887 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.4919, allocations: 0 / 445.5 MB, free: 2.887 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 9.497e-05/0.492, allocations: 32 kB / 445.5 MB, free: 2.855 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005228/0.4925, allocations: 35.09 kB / 445.5 MB, free: 2.824 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000832/0.4933, allocations: 269.1 kB / 445.8 MB, free: 2.516 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/0.4937, allocations: 0.7162 MB / 446.5 MB, free: 1.773 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.4939, allocations: 39.42 kB / 446.6 MB, free: 1.734 MB / 331.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4939, allocations: 0 / 446.6 MB, free: 1.734 MB / 331.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.45/2.944, allocations: 2.105 MB / 448.7 MB, free: 15.67 MB / 347.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter_res.mat does not exist to compare? outputFormat=mat