Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.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.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009388/0.0009388, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.19/1.19, allocations: 227.2 MB / 245 MB, free: 7.609 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008847/0.0008847, allocations: 87.86 kB / 297.2 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002286/0.0002286, allocations: 4 kB / 358 MB, free: 9.445 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2007, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09809/0.2988, allocations: 83.36 MB / 492.8 MB, free: 7.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000208/0.2991, allocations: 79.95 kB / 492.9 MB, free: 7.152 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02249/0.3216, allocations: 8.351 MB / 0.4895 GB, free: 14.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.536e-06/0.3217, allocations: 0 / 0.4895 GB, free: 14.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.717e-05/0.3217, allocations: 15.98 kB / 0.4895 GB, free: 14.77 MB / 378.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.001222/0.3229, allocations: 0.7249 MB / 0.4902 GB, free: 14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.323, allocations: 16.03 kB / 0.4903 GB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.931e-05/0.3231, allocations: 70.53 kB / 0.4903 GB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.651e-05/0.3232, allocations: 55.67 kB / 0.4904 GB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004801/0.3237, allocations: 355.6 kB / 0.4907 GB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.731e-05/0.3237, allocations: 29 kB / 0.4907 GB, free: 13.44 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.276e-05/0.3238, allocations: 43.92 kB / 0.4908 GB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008634/0.3246, allocations: 470.3 kB / 0.4912 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.003e-05/0.3247, allocations: 3.906 kB / 0.4912 GB, free: 12.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.221e-05/0.3247, allocations: 12 kB / 0.4912 GB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.3247, allocations: 8 kB / 0.4913 GB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.3258, allocations: 423.6 kB / 0.4917 GB, free: 12.47 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002051/0.3278, allocations: 1.59 MB / 0.4932 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008056/0.3286, allocations: 353.8 kB / 0.4936 GB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.271e-05/0.3287, allocations: 4 kB / 0.4936 GB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.524e-05/0.3287, allocations: 38.55 kB / 0.4936 GB, free: 10.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 2.134e-06/0.3287, allocations: 0 / 0.4936 GB, free: 10.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.003165/0.3319, allocations: 1.506 MB / 0.4951 GB, free: 8.773 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.332, allocations: 81.11 kB / 0.4951 GB, free: 8.676 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003258/0.3323, allocations: 320.8 kB / 0.4954 GB, free: 8.355 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.724e-05/0.3323, allocations: 29.7 kB / 0.4955 GB, free: 8.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.3325, allocations: 244 kB / 0.4957 GB, free: 8.078 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.902e-05/0.3326, allocations: 114.3 kB / 0.4958 GB, free: 7.965 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.915e-05/0.3326, allocations: 12 kB / 0.4958 GB, free: 7.953 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.3327, allocations: 346.8 kB / 0.4962 GB, free: 7.605 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004427/0.3332, allocations: 184.8 kB / 0.4963 GB, free: 7.426 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005168/0.3337, allocations: 272.8 kB / 0.4966 GB, free: 7.129 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004648/0.3342, allocations: 208.4 kB / 0.4968 GB, free: 6.926 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3342, allocations: 0 / 0.4968 GB, free: 6.926 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001061/0.3353, allocations: 0.5203 MB / 0.4973 GB, free: 6.398 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000275/0.3355, allocations: 0.7854 MB / 0.4981 GB, free: 5.555 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.3356, allocations: 7.938 kB / 0.4981 GB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.3356, allocations: 4 kB / 0.4981 GB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000924/0.3365, allocations: 271.6 kB / 0.4983 GB, free: 5.277 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006126/0.3371, allocations: 0.6913 MB / 0.499 GB, free: 4.562 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003366/0.3375, allocations: 44.06 kB / 0.4991 GB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.976e-05/0.3375, allocations: 19.98 kB / 0.4991 GB, free: 4.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.285e-06/0.3375, allocations: 4 kB / 0.4991 GB, free: 4.496 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009268/0.3385, allocations: 443.8 kB / 0.4995 GB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.3385, allocations: 4 kB / 0.4995 GB, free: 4.059 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.641e-06/0.3385, allocations: 4.156 kB / 0.4995 GB, free: 4.055 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004895/0.339, allocations: 127.9 kB / 0.4996 GB, free: 3.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.339, allocations: 7.984 kB / 0.4996 GB, free: 3.922 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002876/0.3393, allocations: 47.92 kB / 0.4997 GB, free: 3.875 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.46e-05/0.3393, allocations: 16 kB / 0.4997 GB, free: 3.859 MB / 378.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.0002158/0.3396, allocations: 248.9 kB / 0.4999 GB, free: 3.605 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.491e-05/0.3396, allocations: 39.53 kB / 0.5 GB, free: 3.566 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.341e-05/0.3397, allocations: 44.25 kB / 0.5 GB, free: 3.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.3397, allocations: 4 kB / 0.5 GB, free: 3.516 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3398, allocations: 3.938 kB / 0.5 GB, free: 3.512 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.3398, allocations: 7.953 kB / 0.5 GB, free: 3.504 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001561/0.3413, allocations: 0.9584 MB / 0.501 GB, free: 2.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3413, allocations: 0 / 0.501 GB, free: 2.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000458/0.3418, allocations: 104 kB / 0.5011 GB, free: 2.379 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.3418, allocations: 7.953 kB / 0.5011 GB, free: 2.371 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.202e-05/0.3419, allocations: 4 kB / 0.5011 GB, free: 2.367 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.3419, allocations: 4 kB / 0.5011 GB, free: 2.363 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3419, allocations: 0 / 0.5011 GB, free: 2.363 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/0.3433, allocations: 0.786 MB / 0.5019 GB, free: 1.523 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/0.3434, allocations: 136.7 kB / 0.502 GB, free: 1.371 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.689e-05/0.3435, allocations: 8 kB / 0.502 GB, free: 1.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003043/0.3438, allocations: 47.95 kB / 0.502 GB, free: 1.316 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.969e-05/0.3439, allocations: 27.92 kB / 0.5021 GB, free: 1.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.3439, allocations: 8 kB / 0.5021 GB, free: 1.281 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002442/0.3441, allocations: 255.2 kB / 0.5023 GB, free: 1.035 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3441, allocations: 3.938 kB / 0.5023 GB, free: 1.031 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005237/0.3447, allocations: 147.9 kB / 0.5025 GB, free: 0.8867 MB / 378.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.1673/0.512, allocations: 1.595 MB / 0.504 GB, free: 94.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002195/0.5142, allocations: 0.7739 MB / 0.5048 GB, free: 94.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.5143, allocations: 0 / 0.5048 GB, free: 94.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004832/0.5148, allocations: 205.9 kB / 0.505 GB, free: 94.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005897/0.5154, allocations: 78.44 kB / 0.505 GB, free: 94.13 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004499/0.5199, allocations: 4.014 MB / 0.509 GB, free: 91.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002787/0.5202, allocations: 0.8349 MB / 0.5098 GB, free: 91.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002938/0.5205, allocations: 63.53 kB / 0.5098 GB, free: 91.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001904/0.5207, allocations: 138.5 kB / 0.51 GB, free: 91.21 MB / 378.7 MB Notification: Performance of SimCode: time 1.322e-06/0.5207, allocations: 0 / 0.51 GB, free: 91.21 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01938/0.5401, allocations: 7.957 MB / 0.5177 GB, free: 90.22 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001426/0.5402, allocations: 196.3 kB / 0.5179 GB, free: 89.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.095/2.635, allocations: 3.938 kB / 0.5179 GB, free: 89.98 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat