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.001412/0.001412, allocations: 182 kB / 17.01 MB, free: 5.125 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.253/1.253, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0008587/0.0008587, allocations: 88.17 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002229/0.0002229, allocations: 15.97 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.208/0.2083, allocations: 47.56 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09552/0.3038, allocations: 81.81 MB / 457.7 MB, free: 14.83 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/0.3042, allocations: 71.97 kB / 457.8 MB, free: 14.76 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02294/0.3271, allocations: 8.348 MB / 466.1 MB, free: 6.395 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3272, allocations: 0 / 466.1 MB, free: 6.395 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.147e-05/0.3272, allocations: 8 kB / 466.1 MB, free: 6.387 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.001493/0.3287, allocations: 0.7325 MB / 466.9 MB, free: 5.602 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.3288, allocations: 8.031 kB / 466.9 MB, free: 5.594 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001272/0.3289, allocations: 74.53 kB / 466.9 MB, free: 5.512 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.329, allocations: 51.44 kB / 467 MB, free: 5.461 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000584/0.3296, allocations: 360 kB / 467.3 MB, free: 5.074 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/0.3297, allocations: 29 kB / 467.4 MB, free: 5.047 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.434e-05/0.3298, allocations: 43.89 kB / 467.4 MB, free: 5.004 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008595/0.3306, allocations: 466.4 kB / 467.9 MB, free: 4.523 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.3307, allocations: 4 kB / 467.9 MB, free: 4.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.176e-05/0.3307, allocations: 12 kB / 467.9 MB, free: 4.508 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.3307, allocations: 11.98 kB / 467.9 MB, free: 4.496 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009279/0.3316, allocations: 427.6 kB / 468.3 MB, free: 4.078 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002084/0.3337, allocations: 1.595 MB / 469.9 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008066/0.3346, allocations: 354.6 kB / 470.3 MB, free: 2.031 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.3346, allocations: 4 kB / 470.3 MB, free: 2.027 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.3346, allocations: 38.56 kB / 470.3 MB, free: 1.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 2.465e-06/0.3346, allocations: 0 / 470.3 MB, free: 1.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.003318/0.338, allocations: 1.512 MB / 471.8 MB, free: 384 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.344e-05/0.3381, allocations: 81.11 kB / 471.9 MB, free: 284 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000482/0.3386, allocations: 324.7 kB / 472.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/0.3386, allocations: 29.7 kB / 472.2 MB, free: 15.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001823/0.3388, allocations: 243.9 kB / 472.5 MB, free: 15.67 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.3389, allocations: 118.5 kB / 472.6 MB, free: 15.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.235e-05/0.3389, allocations: 8 kB / 472.6 MB, free: 15.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.3391, allocations: 350.8 kB / 472.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004803/0.3396, allocations: 184.8 kB / 473.1 MB, free: 15.01 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005147/0.3401, allocations: 272.8 kB / 473.4 MB, free: 14.71 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004839/0.3406, allocations: 195.8 kB / 473.6 MB, free: 14.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3406, allocations: 4 kB / 473.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001117/0.3418, allocations: 0.5247 MB / 474.1 MB, free: 13.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003576/0.3421, allocations: 0.794 MB / 474.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.3421, allocations: 0 / 474.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.3422, allocations: 4 kB / 474.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009331/0.3431, allocations: 259.7 kB / 475.2 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000749/0.3439, allocations: 0.703 MB / 475.9 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003783/0.3443, allocations: 47.95 kB / 475.9 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.469e-05/0.3443, allocations: 12 kB / 475.9 MB, free: 12.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.3443, allocations: 8.062 kB / 475.9 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000961/0.3453, allocations: 447.7 kB / 476.4 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3453, allocations: 4.031 kB / 476.4 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.586e-06/0.3453, allocations: 4 kB / 476.4 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004739/0.3458, allocations: 123.9 kB / 476.5 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.3458, allocations: 7.938 kB / 476.5 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003017/0.3461, allocations: 47.95 kB / 476.6 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.347e-05/0.3462, allocations: 16 kB / 476.6 MB, free: 11.45 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.0002726/0.3464, allocations: 241 kB / 476.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.739e-05/0.3465, allocations: 39.53 kB / 476.8 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001116/0.3466, allocations: 52.23 kB / 476.9 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.3466, allocations: 8 kB / 476.9 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.3467, allocations: 3.984 kB / 476.9 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.3467, allocations: 3.938 kB / 476.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001734/0.3484, allocations: 0.958 MB / 477.9 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.3484, allocations: 0 / 477.9 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004229/0.3489, allocations: 104 kB / 478 MB, free: 9.969 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.3489, allocations: 0 / 478 MB, free: 9.969 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.771e-05/0.3489, allocations: 15.94 kB / 478 MB, free: 9.953 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.3489, allocations: 7.938 kB / 478 MB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3489, allocations: 0 / 478 MB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001406/0.3503, allocations: 0.7785 MB / 478.8 MB, free: 9.113 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001586/0.3505, allocations: 144.7 kB / 478.9 MB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.052e-05/0.3506, allocations: 8 kB / 478.9 MB, free: 8.945 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002886/0.3509, allocations: 39.97 kB / 479 MB, free: 8.906 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.211e-05/0.351, allocations: 39.84 kB / 479 MB, free: 8.867 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.351, allocations: 12 kB / 479 MB, free: 8.855 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002664/0.3512, allocations: 251.2 kB / 479.3 MB, free: 8.617 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3513, allocations: 0 / 479.3 MB, free: 8.617 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005311/0.3518, allocations: 140 kB / 479.4 MB, free: 8.48 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.001849/0.3536, allocations: 1.611 MB / 481 MB, free: 6.812 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00186/0.3555, allocations: 0.7773 MB / 481.8 MB, free: 6.035 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3555, allocations: 3.938 kB / 481.8 MB, free: 6.031 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000445/0.356, allocations: 200.1 kB / 482 MB, free: 5.836 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005412/0.3565, allocations: 94.09 kB / 482.1 MB, free: 5.746 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005614/0.3622, allocations: 4.024 MB / 486.1 MB, free: 1.633 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.3625, allocations: 0.8315 MB / 486.9 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002889/0.3628, allocations: 55.25 kB / 487 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001923/0.363, allocations: 147.3 kB / 487.1 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of SimCode: time 1.122e-06/0.363, allocations: 3.938 kB / 487.1 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02235/0.3854, allocations: 8.01 MB / 495.1 MB, free: 8.59 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002624/0.3857, allocations: 200.3 kB / 495.3 MB, free: 8.344 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.124/2.51, allocations: 3.938 kB / 495.3 MB, free: 8.34 MB / 378.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