Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_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.001101/0.001101, allocations: 171.5 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.334/1.334, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.000821/0.0008209, allocations: 90.69 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.291e-05/2.295e-05, allocations: 0 / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07867/0.07871, allocations: 47.58 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2821/0.3608, allocations: 81.71 MB / 451.8 MB, free: 11.67 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001788/0.361, allocations: 71.34 kB / 451.9 MB, free: 11.64 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02189/0.3829, allocations: 8.319 MB / 460.2 MB, free: 4.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.383, allocations: 4 kB / 460.2 MB, free: 4.656 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.85e-05/0.383, allocations: 8 kB / 460.2 MB, free: 4.648 MB / 330.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.0011/0.3841, allocations: 0.6839 MB / 460.9 MB, free: 3.945 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.3842, allocations: 8.031 kB / 460.9 MB, free: 3.938 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.616e-05/0.3843, allocations: 77.09 kB / 461 MB, free: 3.875 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.743e-05/0.3844, allocations: 47.44 kB / 461 MB, free: 3.828 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005654/0.3849, allocations: 365.3 kB / 461.4 MB, free: 3.445 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.503e-05/0.385, allocations: 28.78 kB / 461.4 MB, free: 3.414 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.893e-05/0.3851, allocations: 39.91 kB / 461.5 MB, free: 3.375 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006802/0.3858, allocations: 387.2 kB / 461.8 MB, free: 2.973 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/0.3858, allocations: 0 / 461.8 MB, free: 2.973 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.934e-05/0.3858, allocations: 19.98 kB / 461.9 MB, free: 2.953 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.3859, allocations: 12 kB / 461.9 MB, free: 2.941 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004783/0.3863, allocations: 263 kB / 462.1 MB, free: 2.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002175/0.3885, allocations: 1.586 MB / 463.7 MB, free: 1.004 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005475/0.3891, allocations: 263.4 kB / 464 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/0.3893, allocations: 116.8 kB / 464.1 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.565e-05/0.3893, allocations: 4 kB / 464.1 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.3894, allocations: 38.5 kB / 464.1 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 2.595e-06/0.3894, allocations: 0 / 464.1 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.001534/0.3909, allocations: 1.002 MB / 465.1 MB, free: 15.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/0.391, allocations: 81.11 kB / 465.2 MB, free: 15.37 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003409/0.3913, allocations: 319.5 kB / 465.5 MB, free: 15.05 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.934e-05/0.3914, allocations: 33.7 kB / 465.6 MB, free: 15.01 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.3915, allocations: 244 kB / 465.8 MB, free: 14.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.716e-05/0.3916, allocations: 110.4 kB / 465.9 MB, free: 14.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.944e-05/0.3916, allocations: 12 kB / 465.9 MB, free: 14.65 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3918, allocations: 346.8 kB / 466.2 MB, free: 14.3 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.392, allocations: 112.9 kB / 466.4 MB, free: 14.19 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002335/0.3922, allocations: 196.8 kB / 466.6 MB, free: 13.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002061/0.3924, allocations: 124 kB / 466.7 MB, free: 13.84 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3924, allocations: 0 / 466.7 MB, free: 13.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005434/0.393, allocations: 393.3 kB / 467.1 MB, free: 13.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002747/0.3933, allocations: 0.7901 MB / 467.8 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.3933, allocations: 0 / 467.8 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.3933, allocations: 4 kB / 467.9 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009438/0.3942, allocations: 259.7 kB / 468.1 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004923/0.3947, allocations: 0.6601 MB / 468.8 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003403/0.3951, allocations: 56.08 kB / 468.8 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.662e-05/0.3951, allocations: 12 kB / 468.8 MB, free: 11.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.435e-06/0.3951, allocations: 4 kB / 468.8 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004765/0.3956, allocations: 330 kB / 469.2 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.746e-06/0.3956, allocations: 0 / 469.2 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.931e-06/0.3957, allocations: 8.219 kB / 469.2 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000488/0.3961, allocations: 127.8 kB / 469.3 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.3962, allocations: 4 kB / 469.3 MB, free: 11.13 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.3964, allocations: 47.95 kB / 469.3 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.852e-05/0.3965, allocations: 15.95 kB / 469.4 MB, free: 11.07 MB / 346.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 () * 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 9.879e-05/0.3966, allocations: 128.9 kB / 469.5 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.497e-05/0.3967, allocations: 39.44 kB / 469.5 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.3968, allocations: 48.38 kB / 469.6 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3968, allocations: 4 kB / 469.6 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.3968, allocations: 0 / 469.6 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.3968, allocations: 7.984 kB / 469.6 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.3979, allocations: 0.8185 MB / 470.4 MB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3979, allocations: 3.938 kB / 470.4 MB, free: 9.945 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004263/0.3983, allocations: 100.1 kB / 470.5 MB, free: 9.848 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.3983, allocations: 0 / 470.5 MB, free: 9.848 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.527e-05/0.3984, allocations: 15.95 kB / 470.5 MB, free: 9.832 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.3984, allocations: 11.92 kB / 470.5 MB, free: 9.82 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3984, allocations: 0 / 470.5 MB, free: 9.82 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006299/0.399, allocations: 0.5639 MB / 471.1 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.3991, allocations: 132.7 kB / 471.2 MB, free: 9.055 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.943e-05/0.3992, allocations: 12 kB / 471.2 MB, free: 9.043 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003049/0.3995, allocations: 51.89 kB / 471.3 MB, free: 8.992 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.87e-05/0.3996, allocations: 27.92 kB / 471.3 MB, free: 8.965 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.3996, allocations: 12 kB / 471.3 MB, free: 8.953 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002323/0.3998, allocations: 246.2 kB / 471.6 MB, free: 8.719 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3999, allocations: 3.938 kB / 471.6 MB, free: 8.715 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004904/0.4004, allocations: 140 kB / 471.7 MB, free: 8.578 MB / 346.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 () * 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.0009643/0.4013, allocations: 1.395 MB / 473.1 MB, free: 7.129 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.4025, allocations: 0.5765 MB / 473.7 MB, free: 6.555 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4025, allocations: 8.062 kB / 473.7 MB, free: 6.547 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001922/0.4027, allocations: 123.9 kB / 473.8 MB, free: 6.426 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000485/0.4032, allocations: 87.61 kB / 473.9 MB, free: 6.344 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/0.4048, allocations: 0.9013 MB / 474.8 MB, free: 5.395 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.4052, allocations: 0.8397 MB / 475.6 MB, free: 4.527 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003198/0.4055, allocations: 89.19 kB / 475.7 MB, free: 4.438 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001947/0.4057, allocations: 139.4 kB / 475.9 MB, free: 4.301 MB / 346.7 MB Notification: Performance of SimCode: time 4.3e-07/0.4057, allocations: 0 / 475.9 MB, free: 4.301 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02114/0.4269, allocations: 8.496 MB / 484.3 MB, free: 11.8 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001941/0.4271, allocations: 167.5 kB / 484.5 MB, free: 11.58 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.096/2.524, allocations: 3.938 kB / 484.5 MB, free: 11.57 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat