Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.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.PID_Controller,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_PID_Controller",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.001501/0.001501, allocations: 184.6 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.034/2.034, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00117/0.00117, allocations: 90.05 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003973/0.0003973, allocations: 8 kB / 327.1 MB, free: 136 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3376, allocations: 47.57 MB / 374.6 MB, free: 45.24 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1488/0.4865, allocations: 81.81 MB / 456.4 MB, free: 14.85 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002896/0.4869, allocations: 79.95 kB / 456.5 MB, free: 14.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03878/0.5257, allocations: 8.343 MB / 464.9 MB, free: 6.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.5257, allocations: 3.938 kB / 464.9 MB, free: 6.406 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.618e-05/0.5258, allocations: 8 kB / 464.9 MB, free: 6.398 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001984/0.5278, allocations: 0.7325 MB / 465.6 MB, free: 5.613 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.5279, allocations: 8.031 kB / 465.6 MB, free: 5.605 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001396/0.528, allocations: 74.53 kB / 465.7 MB, free: 5.523 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.5281, allocations: 51.42 kB / 465.7 MB, free: 5.473 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007713/0.5289, allocations: 360 kB / 466.1 MB, free: 5.086 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.773e-05/0.529, allocations: 32.98 kB / 466.1 MB, free: 5.055 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.5291, allocations: 39.91 kB / 466.2 MB, free: 5.016 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001535/0.5307, allocations: 466.4 kB / 466.6 MB, free: 4.535 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.182e-05/0.5307, allocations: 3.984 kB / 466.6 MB, free: 4.531 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.869e-05/0.5308, allocations: 12 kB / 466.6 MB, free: 4.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.695e-05/0.5308, allocations: 12 kB / 466.6 MB, free: 4.508 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001839/0.5327, allocations: 423.6 kB / 467 MB, free: 4.094 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003595/0.5363, allocations: 1.599 MB / 468.6 MB, free: 2.406 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00151/0.5379, allocations: 346.8 kB / 469 MB, free: 2.051 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.211e-05/0.538, allocations: 4 kB / 469 MB, free: 2.047 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/0.538, allocations: 34.56 kB / 469 MB, free: 2.004 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 5.691e-06/0.538, allocations: 0 / 469 MB, free: 2.004 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.006057/0.5441, allocations: 1.512 MB / 470.5 MB, free: 408 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.33e-05/0.5442, allocations: 81.11 kB / 470.6 MB, free: 308 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006496/0.5449, allocations: 324.9 kB / 470.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.572e-05/0.545, allocations: 33.7 kB / 471 MB, free: 15.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002643/0.5452, allocations: 290.3 kB / 471.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.5454, allocations: 114.3 kB / 471.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.623e-05/0.5454, allocations: 12 kB / 471.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.5456, allocations: 326.8 kB / 471.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008933/0.5465, allocations: 184.8 kB / 471.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009944/0.5475, allocations: 268.8 kB / 472.1 MB, free: 14.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000918/0.5485, allocations: 202 kB / 472.3 MB, free: 14.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.5485, allocations: 0 / 472.3 MB, free: 14.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.002102/0.5506, allocations: 0.5054 MB / 472.8 MB, free: 14.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004137/0.5511, allocations: 0.7871 MB / 473.6 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.5511, allocations: 4 kB / 473.6 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.812e-05/0.5511, allocations: 8 kB / 473.6 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001999/0.5531, allocations: 263.7 kB / 473.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/0.5543, allocations: 0.6952 MB / 474.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007097/0.5551, allocations: 43.97 kB / 474.6 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.672e-05/0.5551, allocations: 24.08 kB / 474.7 MB, free: 12.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.5552, allocations: 7.938 kB / 474.7 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001765/0.5569, allocations: 443.6 kB / 475.1 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.557, allocations: 4 kB / 475.1 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.557, allocations: 4 kB / 475.1 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.558, allocations: 127.8 kB / 475.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.5581, allocations: 7.984 kB / 475.2 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004942/0.5586, allocations: 44.09 kB / 475.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.289e-05/0.5586, allocations: 16 kB / 475.3 MB, free: 11.47 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004257/0.5591, allocations: 244.9 kB / 475.5 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001478/0.5592, allocations: 39.53 kB / 475.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000141/0.5594, allocations: 44.25 kB / 475.6 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.5594, allocations: 4 kB / 475.6 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.5594, allocations: 0 / 475.6 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.5594, allocations: 4 kB / 475.6 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002964/0.5624, allocations: 0.9657 MB / 476.6 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.5625, allocations: 8.062 kB / 476.6 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008838/0.5634, allocations: 95.92 kB / 476.7 MB, free: 9.992 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.277e-05/0.5634, allocations: 4 kB / 476.7 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.107e-05/0.5634, allocations: 11.95 kB / 476.7 MB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.035e-06/0.5635, allocations: 3.938 kB / 476.7 MB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.5635, allocations: 8 kB / 476.7 MB, free: 9.965 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002809/0.5663, allocations: 0.7746 MB / 477.5 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002882/0.5666, allocations: 140.7 kB / 477.6 MB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.923e-05/0.5667, allocations: 8 kB / 477.6 MB, free: 8.973 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000574/0.5673, allocations: 47.89 kB / 477.7 MB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.5674, allocations: 31.92 kB / 477.7 MB, free: 8.895 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/0.5675, allocations: 4 kB / 477.7 MB, free: 8.891 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004825/0.568, allocations: 259.2 kB / 478 MB, free: 8.645 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.568, allocations: 0 / 478 MB, free: 8.645 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008379/0.5688, allocations: 136 kB / 478.1 MB, free: 8.512 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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.003448/0.5723, allocations: 1.619 MB / 479.7 MB, free: 6.836 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003798/0.5761, allocations: 0.7734 MB / 480.5 MB, free: 6.062 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/0.5762, allocations: 4.25 kB / 480.5 MB, free: 6.059 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009643/0.5772, allocations: 204 kB / 480.7 MB, free: 5.859 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009845/0.5782, allocations: 95.08 kB / 480.8 MB, free: 5.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008995/0.5872, allocations: 4.061 MB / 484.9 MB, free: 1.613 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005917/0.5879, allocations: 0.8315 MB / 485.7 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004262/0.5883, allocations: 147.4 kB / 485.8 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5883, allocations: 3.938 kB / 485.8 MB, free: 0.6055 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.676/3.264, allocations: 7.571 MB / 493.4 MB, free: 9.047 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat