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/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: "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001416/0.001416, allocations: 196.2 kB / 14.16 MB, free: 1.156 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008875/0.0008872, allocations: 90.72 kB / 292.1 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.99e-05/2.994e-05, allocations: 4 kB / 350.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1006, allocations: 51.49 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3447/0.4453, allocations: 78.05 MB / 480.2 MB, free: 11.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/0.4456, allocations: 63.97 kB / 480.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005975/0.4516, allocations: 2.498 MB / 482.7 MB, free: 9.273 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4516, allocations: 0 / 482.7 MB, free: 9.273 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.309e-05/0.4516, allocations: 8 kB / 482.7 MB, free: 9.266 MB / 346.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.0003663/0.452, allocations: 411.9 kB / 483.1 MB, free: 8.836 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.452, allocations: 12.03 kB / 483.2 MB, free: 8.824 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.624e-05/0.4521, allocations: 38.11 kB / 483.2 MB, free: 8.781 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.383e-05/0.4521, allocations: 12.69 kB / 483.2 MB, free: 8.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001926/0.4523, allocations: 203.5 kB / 483.4 MB, free: 8.535 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.4524, allocations: 7.688 kB / 483.4 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.615e-05/0.4524, allocations: 15.52 kB / 483.4 MB, free: 8.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001543/0.4525, allocations: 103.6 kB / 483.5 MB, free: 8.426 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.4526, allocations: 8.938 kB / 483.5 MB, free: 8.418 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.4526, allocations: 4.25 kB / 483.5 MB, free: 8.418 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.4526, allocations: 0 / 483.5 MB, free: 8.418 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.93e-05/0.4527, allocations: 43 kB / 483.6 MB, free: 8.387 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005594/0.4532, allocations: 0.5547 MB / 484.1 MB, free: 7.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.4534, allocations: 78.67 kB / 484.2 MB, free: 7.758 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.696e-05/0.4534, allocations: 33.94 kB / 484.2 MB, free: 7.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.4535, allocations: 7.453 kB / 484.3 MB, free: 7.727 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.367e-05/0.4535, allocations: 34.56 kB / 484.3 MB, free: 7.684 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.303e-06/0.4535, allocations: 0 / 484.3 MB, free: 7.684 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005226/0.454, allocations: 351.9 kB / 484.6 MB, free: 7.324 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.139e-05/0.454, allocations: 51.41 kB / 484.7 MB, free: 7.262 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.924e-05/0.4541, allocations: 143.4 kB / 484.8 MB, free: 7.129 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/0.4542, allocations: 25.7 kB / 484.8 MB, free: 7.098 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.805e-05/0.4542, allocations: 105.6 kB / 485 MB, free: 7 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.055e-05/0.4542, allocations: 42.83 kB / 485 MB, free: 6.961 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-06/0.4542, allocations: 7.5 kB / 485 MB, free: 6.957 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.563e-05/0.4543, allocations: 321.7 kB / 485.3 MB, free: 6.641 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.477e-05/0.4543, allocations: 25.62 kB / 485.3 MB, free: 6.625 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.301e-05/0.4544, allocations: 54.2 kB / 485.4 MB, free: 6.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.348e-05/0.4545, allocations: 33.8 kB / 485.4 MB, free: 6.547 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.4545, allocations: 0 / 485.4 MB, free: 6.547 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001525/0.4546, allocations: 128 kB / 485.6 MB, free: 6.441 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.4547, allocations: 7.953 kB / 485.6 MB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.4547, allocations: 0 / 485.6 MB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.4547, allocations: 4 kB / 485.6 MB, free: 6.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/0.4549, allocations: 39.78 kB / 485.6 MB, free: 6.395 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.4549, allocations: 8.797 kB / 485.6 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.115e-05/0.455, allocations: 19.92 kB / 485.6 MB, free: 6.367 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.455, allocations: 6.875 kB / 485.6 MB, free: 6.363 MB / 346.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 () * 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 5.122e-05/0.455, allocations: 107.7 kB / 485.7 MB, free: 6.254 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.122e-05/0.4551, allocations: 12.66 kB / 485.8 MB, free: 6.242 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.842e-05/0.4551, allocations: 18.56 kB / 485.8 MB, free: 6.23 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.4551, allocations: 8 kB / 485.8 MB, free: 6.223 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.4551, allocations: 0 / 485.8 MB, free: 6.223 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.4552, allocations: 0 / 485.8 MB, free: 6.223 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003863/0.4555, allocations: 414.8 kB / 486.2 MB, free: 5.801 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.4556, allocations: 1.312 kB / 486.2 MB, free: 5.801 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001507/0.4557, allocations: 39.25 kB / 486.2 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.4557, allocations: 5.406 kB / 486.2 MB, free: 5.762 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.4557, allocations: 0 / 486.2 MB, free: 5.762 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4557, allocations: 0 / 486.2 MB, free: 5.762 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4558, allocations: 0 / 486.2 MB, free: 5.762 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002017/0.456, allocations: 249.6 kB / 486.5 MB, free: 5.523 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.674e-05/0.456, allocations: 85.02 kB / 486.6 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.982e-05/0.456, allocations: 8.188 kB / 486.6 MB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.4561, allocations: 17.25 kB / 486.6 MB, free: 5.402 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.581e-05/0.4562, allocations: 8.672 kB / 486.6 MB, free: 5.395 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/0.4562, allocations: 7.625 kB / 486.6 MB, free: 5.391 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6e-05/0.4563, allocations: 124.5 kB / 486.7 MB, free: 5.281 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4563, allocations: 0 / 486.7 MB, free: 5.281 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002253/0.4565, allocations: 16 kB / 486.7 MB, free: 5.266 MB / 346.7 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.0003718/0.4569, allocations: 0.8471 MB / 487.6 MB, free: 4.422 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001279/0.457, allocations: 73.09 kB / 487.7 MB, free: 4.367 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.457, allocations: 0 / 487.7 MB, free: 4.367 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.397e-05/0.4571, allocations: 37.12 kB / 487.7 MB, free: 4.34 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002985/0.4574, allocations: 34.98 kB / 487.7 MB, free: 4.316 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004608/0.4579, allocations: 255.1 kB / 488 MB, free: 4.062 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001261/0.458, allocations: 0.7165 MB / 488.7 MB, free: 3.32 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.947e-05/0.4581, allocations: 9.203 kB / 488.7 MB, free: 3.312 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.803e-05/0.4581, allocations: 34.12 kB / 488.7 MB, free: 3.297 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4581, allocations: 1.125 kB / 488.7 MB, free: 3.297 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0119/0.4701, allocations: 2.699 MB / 491.4 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001488/0.4702, allocations: 144.6 kB / 491.6 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.588/2.058, allocations: 3.938 kB / 491.6 MB, free: 0.5977 MB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.mat does not exist to compare? outputFormat=mat