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.001615/0.001615, allocations: 202.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 225.6 MB / 234.8 MB, free: 3.25 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008424/0.0008424, allocations: 94.61 kB / 286.7 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.087e-05/2.09e-05, allocations: 7.938 kB / 343.8 MB, free: 8.184 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1153, allocations: 51.47 MB / 395.2 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3473/0.4626, allocations: 82.62 MB / 477.9 MB, free: 10.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002018/0.4629, allocations: 72.42 kB / 477.9 MB, free: 10.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0201/0.483, allocations: 8.28 MB / 486.2 MB, free: 3.754 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.483, allocations: 0 / 486.2 MB, free: 3.754 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.44e-05/0.4831, allocations: 16 kB / 486.2 MB, free: 3.738 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.001027/0.4841, allocations: 0.677 MB / 486.9 MB, free: 3.047 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.4842, allocations: 16.03 kB / 486.9 MB, free: 3.031 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.275e-05/0.4842, allocations: 48.3 kB / 487 MB, free: 2.984 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004087/0.4847, allocations: 359.4 kB / 487.3 MB, free: 2.637 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.4847, allocations: 12 kB / 487.3 MB, free: 2.625 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.779e-05/0.4847, allocations: 23.98 kB / 487.4 MB, free: 2.602 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003641/0.4851, allocations: 242.1 kB / 487.6 MB, free: 2.449 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004232/0.4856, allocations: 335.9 kB / 487.9 MB, free: 2.176 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.4856, allocations: 7.891 kB / 487.9 MB, free: 2.168 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.812e-05/0.4856, allocations: 4 kB / 487.9 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.4856, allocations: 8 kB / 487.9 MB, free: 2.156 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001555/0.4872, allocations: 1.51 MB / 489.5 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003929/0.4876, allocations: 229.3 kB / 489.7 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000139/0.4877, allocations: 112.4 kB / 489.8 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.952e-05/0.4878, allocations: 8 kB / 489.8 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.588e-05/0.4878, allocations: 38.19 kB / 489.8 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 1.562e-06/0.4878, allocations: 0 / 489.8 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001237/0.4891, allocations: 0.9316 MB / 490.8 MB, free: 15.65 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.128e-05/0.4891, allocations: 85.11 kB / 490.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002682/0.4894, allocations: 275.4 kB / 491.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.4894, allocations: 25.7 kB / 491.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.4896, allocations: 245.2 kB / 491.4 MB, free: 15.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.548e-05/0.4896, allocations: 115.5 kB / 491.5 MB, free: 15.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.57e-05/0.4897, allocations: 0 / 491.5 MB, free: 15.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.4898, allocations: 344.3 kB / 491.8 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.4899, allocations: 100.2 kB / 491.9 MB, free: 14.63 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/0.4902, allocations: 192.4 kB / 492.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001728/0.4903, allocations: 119.8 kB / 492.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.4903, allocations: 0 / 492.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004789/0.4908, allocations: 355.1 kB / 492.6 MB, free: 14.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002639/0.4911, allocations: 0.7866 MB / 493.4 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.4911, allocations: 0 / 493.4 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.4911, allocations: 4 kB / 493.4 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009626/0.4921, allocations: 262.3 kB / 493.6 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000483/0.4926, allocations: 0.6652 MB / 494.3 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003264/0.4929, allocations: 40.06 kB / 494.3 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.89e-05/0.493, allocations: 22.17 kB / 494.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.276e-06/0.493, allocations: 4 kB / 494.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003932/0.4934, allocations: 272.5 kB / 494.6 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.746e-06/0.4934, allocations: 0 / 494.6 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.302e-06/0.4934, allocations: 4 kB / 494.6 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004886/0.4939, allocations: 131.6 kB / 494.8 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.4939, allocations: 4 kB / 494.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002696/0.4942, allocations: 39.09 kB / 494.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.251e-05/0.4942, allocations: 15.38 kB / 494.8 MB, free: 11.92 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.000108/0.4943, allocations: 120.8 kB / 494.9 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000337/0.4947, allocations: 240.8 kB / 495.2 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.643e-05/0.4947, allocations: 35.53 kB / 495.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.591e-05/0.4949, allocations: 44.91 kB / 495.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.4949, allocations: 6.156 kB / 495.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.4949, allocations: 0 / 495.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.4949, allocations: 3.953 kB / 495.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009328/0.4958, allocations: 0.7433 MB / 496 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.4958, allocations: 0 / 496 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004316/0.4963, allocations: 99.12 kB / 496.1 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.4963, allocations: 4 kB / 496.1 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/0.4963, allocations: 7.953 kB / 496.1 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.4963, allocations: 7.922 kB / 496.1 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.4963, allocations: 4 kB / 496.1 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000571/0.4969, allocations: 0.5423 MB / 496.7 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.4971, allocations: 138.3 kB / 496.8 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.4971, allocations: 0 / 496.8 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002976/0.4974, allocations: 43.95 kB / 496.8 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.032e-05/0.4975, allocations: 27.36 kB / 496.9 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.906e-05/0.4975, allocations: 15.48 kB / 496.9 MB, free: 10.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001978/0.4977, allocations: 218.1 kB / 497.1 MB, free: 9.922 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4977, allocations: 0 / 497.1 MB, free: 9.922 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005126/0.4983, allocations: 120 kB / 497.2 MB, free: 9.805 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.0009994/0.4993, allocations: 1.358 MB / 498.6 MB, free: 8.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.5004, allocations: 0.5418 MB / 499.1 MB, free: 8.113 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.5004, allocations: 0 / 499.1 MB, free: 8.113 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001773/0.5006, allocations: 130.4 kB / 499.2 MB, free: 8.023 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005512/0.5011, allocations: 79.95 kB / 499.3 MB, free: 7.965 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.5029, allocations: 0.8717 MB / 0.4885 GB, free: 7.121 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.5033, allocations: 0.8314 MB / 0.4893 GB, free: 6.262 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003255/0.5036, allocations: 89.39 kB / 0.4894 GB, free: 6.172 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001954/0.5039, allocations: 140.9 kB / 0.4895 GB, free: 6.133 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5039, allocations: 7.938 kB / 0.4895 GB, free: 6.125 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02714/0.531, allocations: 7.546 MB / 0.4969 GB, free: 14.68 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/0.5313, allocations: 122.1 kB / 0.497 GB, free: 14.49 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.053/2.584, allocations: 2.75 kB / 0.497 GB, free: 14.49 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