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.001703/0.001703, allocations: 196.6 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001057/0.001057, allocations: 90.5 kB / 292.1 MB, free: 5.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.508e-05/3.535e-05, allocations: 4 kB / 350.6 MB, free: 2.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1292, allocations: 51.48 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3775/0.5068, allocations: 83.28 MB / 485.4 MB, free: 6.227 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002039/0.507, allocations: 74.33 kB / 485.5 MB, free: 6.191 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02072/0.5278, allocations: 8.335 MB / 493.8 MB, free: 15.27 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5278, allocations: 0 / 493.8 MB, free: 15.27 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.585e-05/0.5278, allocations: 15.98 kB / 493.8 MB, free: 15.25 MB / 362.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.001156/0.529, allocations: 0.6784 MB / 494.5 MB, free: 14.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.529, allocations: 8.031 kB / 494.5 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.328e-05/0.5291, allocations: 79.14 kB / 494.6 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.882e-05/0.5292, allocations: 52.23 kB / 494.6 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005552/0.5298, allocations: 355.3 kB / 495 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.427e-05/0.5298, allocations: 36.03 kB / 495 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.454e-05/0.5299, allocations: 41.3 kB / 495.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006439/0.5306, allocations: 378.2 kB / 495.4 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.583e-05/0.5306, allocations: 7.906 kB / 495.4 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.681e-05/0.5307, allocations: 12 kB / 495.4 MB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.5307, allocations: 16 kB / 495.5 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004616/0.5311, allocations: 267 kB / 495.7 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00204/0.5332, allocations: 1.59 MB / 497.3 MB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005052/0.5337, allocations: 254.3 kB / 497.6 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.5339, allocations: 108.9 kB / 497.7 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.5339, allocations: 4 kB / 497.7 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.128e-05/0.534, allocations: 34.56 kB / 497.7 MB, free: 11.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 1.583e-06/0.534, allocations: 0 / 497.7 MB, free: 11.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001525/0.5355, allocations: 0.9981 MB / 498.7 MB, free: 10.25 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.522e-05/0.5356, allocations: 81.11 kB / 498.8 MB, free: 10.16 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003538/0.536, allocations: 311.6 kB / 499.1 MB, free: 9.848 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.536, allocations: 33.7 kB / 499.1 MB, free: 9.809 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001611/0.5362, allocations: 243.9 kB / 499.4 MB, free: 9.566 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.598e-05/0.5363, allocations: 114.5 kB / 499.5 MB, free: 9.453 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.831e-05/0.5363, allocations: 8 kB / 499.5 MB, free: 9.445 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.5364, allocations: 350.8 kB / 499.8 MB, free: 9.094 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/0.5367, allocations: 109.5 kB / 499.9 MB, free: 8.988 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002569/0.5369, allocations: 204.8 kB / 0.4884 GB, free: 8.758 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.5371, allocations: 124.5 kB / 0.4885 GB, free: 8.637 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.5371, allocations: 7.953 kB / 0.4885 GB, free: 8.629 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005563/0.5377, allocations: 376.9 kB / 0.4889 GB, free: 8.254 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002786/0.538, allocations: 0.7863 MB / 0.4897 GB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.538, allocations: 1.125 kB / 0.4897 GB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.429e-05/0.538, allocations: 11.94 kB / 0.4897 GB, free: 7.395 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009561/0.539, allocations: 267.7 kB / 0.4899 GB, free: 7.133 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005303/0.5395, allocations: 0.6562 MB / 0.4906 GB, free: 6.453 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003328/0.5399, allocations: 46.14 kB / 0.4906 GB, free: 6.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.896e-05/0.5399, allocations: 20.09 kB / 0.4906 GB, free: 6.391 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.54, allocations: 13.28 kB / 0.4906 GB, free: 6.379 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004975/0.5405, allocations: 316.6 kB / 0.4909 GB, free: 6.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.354e-06/0.5405, allocations: 0 / 0.4909 GB, free: 6.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.442e-06/0.5405, allocations: 4 kB / 0.4909 GB, free: 6.066 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005271/0.541, allocations: 132.1 kB / 0.4911 GB, free: 5.938 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.541, allocations: 4 kB / 0.4911 GB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.5413, allocations: 54.3 kB / 0.4911 GB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.405e-05/0.5414, allocations: 16 kB / 0.4911 GB, free: 5.867 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 () * 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.0001141/0.5415, allocations: 124.9 kB / 0.4913 GB, free: 5.738 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.147e-05/0.5416, allocations: 39.53 kB / 0.4913 GB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001083/0.5417, allocations: 48.36 kB / 0.4913 GB, free: 5.648 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.5417, allocations: 4 kB / 0.4913 GB, free: 5.645 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.5417, allocations: 0 / 0.4913 GB, free: 5.645 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.443e-06/0.5417, allocations: 3.953 kB / 0.4913 GB, free: 5.641 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.5429, allocations: 0.8145 MB / 0.4921 GB, free: 4.762 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.5429, allocations: 0 / 0.4921 GB, free: 4.762 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004327/0.5433, allocations: 100 kB / 0.4922 GB, free: 4.664 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.897e-06/0.5433, allocations: 8.828 kB / 0.4922 GB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.544e-05/0.5434, allocations: 15.92 kB / 0.4923 GB, free: 4.641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.5434, allocations: 4 kB / 0.4923 GB, free: 4.637 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.5434, allocations: 0 / 0.4923 GB, free: 4.637 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000713/0.5441, allocations: 0.5669 MB / 0.4928 GB, free: 4.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001481/0.5443, allocations: 140.7 kB / 0.493 GB, free: 3.863 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.109e-05/0.5443, allocations: 11.19 kB / 0.493 GB, free: 3.855 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003331/0.5447, allocations: 47.95 kB / 0.493 GB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.92e-05/0.5448, allocations: 31.86 kB / 0.493 GB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.5448, allocations: 12 kB / 0.4931 GB, free: 3.766 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002551/0.545, allocations: 242.2 kB / 0.4933 GB, free: 3.535 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5451, allocations: 0 / 0.4933 GB, free: 3.535 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004998/0.5456, allocations: 144 kB / 0.4934 GB, free: 3.395 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 () * 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.001152/0.5467, allocations: 1.382 MB / 0.4948 GB, free: 1.957 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001134/0.5479, allocations: 0.5868 MB / 0.4953 GB, free: 1.375 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.5479, allocations: 0 / 0.4953 GB, free: 1.375 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002027/0.5481, allocations: 132.4 kB / 0.4955 GB, free: 1.246 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005447/0.5486, allocations: 85.25 kB / 0.4956 GB, free: 1.164 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001757/0.5504, allocations: 0.9064 MB / 0.4964 GB, free: 220 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.5508, allocations: 0.824 MB / 0.4972 GB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003293/0.5511, allocations: 89.19 kB / 0.4973 GB, free: 15.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/0.5513, allocations: 139.4 kB / 0.4975 GB, free: 15.14 MB / 378.7 MB Notification: Performance of SimCode: time 6.41e-07/0.5514, allocations: 4 kB / 0.4975 GB, free: 15.14 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02093/0.5723, allocations: 8.408 MB / 0.5057 GB, free: 6.992 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001745/0.5725, allocations: 171 kB / 0.5058 GB, free: 6.766 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.171/2.743, allocations: 0 / 0.5058 GB, free: 6.766 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