Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_cpp_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.001603/0.001602, allocations: 181.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.225/2.225, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001077/0.001077, allocations: 94.69 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.409e-05/3.418e-05, allocations: 7.984 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09224/0.0923, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4068/0.4991, allocations: 81.72 MB / 450.9 MB, free: 11.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.4994, allocations: 76.2 kB / 451 MB, free: 11.48 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03695/0.5364, allocations: 8.313 MB / 459.3 MB, free: 4.508 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.689e-06/0.5365, allocations: 0 / 459.3 MB, free: 4.508 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.762e-05/0.5365, allocations: 15.94 kB / 459.3 MB, free: 4.492 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.001749/0.5383, allocations: 0.6784 MB / 460 MB, free: 3.793 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.5384, allocations: 11.97 kB / 460 MB, free: 3.781 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001501/0.5385, allocations: 73.28 kB / 460.1 MB, free: 3.723 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.5387, allocations: 51.44 kB / 460.1 MB, free: 3.672 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007693/0.5394, allocations: 363.6 kB / 460.5 MB, free: 3.316 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.693e-05/0.5395, allocations: 24.72 kB / 460.5 MB, free: 3.301 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.5396, allocations: 45.66 kB / 460.5 MB, free: 3.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008993/0.5405, allocations: 389.1 kB / 460.9 MB, free: 2.977 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/0.5406, allocations: 0 / 460.9 MB, free: 2.977 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.396e-05/0.5406, allocations: 15.31 kB / 460.9 MB, free: 2.973 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.887e-05/0.5407, allocations: 8 kB / 460.9 MB, free: 2.965 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007547/0.5414, allocations: 263.9 kB / 461.2 MB, free: 2.785 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003354/0.5448, allocations: 1.598 MB / 462.8 MB, free: 1.305 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008355/0.5457, allocations: 259.5 kB / 463 MB, free: 1.035 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003061/0.546, allocations: 112.8 kB / 463.2 MB, free: 0.9219 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.706e-05/0.5461, allocations: 8 kB / 463.2 MB, free: 0.9141 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/0.5461, allocations: 34.56 kB / 463.2 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 2.525e-06/0.5461, allocations: 0 / 463.2 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.002532/0.5487, allocations: 0.998 MB / 464.2 MB, free: 15.78 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.329e-05/0.5488, allocations: 89.11 kB / 464.3 MB, free: 15.67 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006087/0.5494, allocations: 319.5 kB / 464.6 MB, free: 15.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.485e-05/0.5495, allocations: 29.7 kB / 464.6 MB, free: 15.32 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002455/0.5497, allocations: 290.3 kB / 464.9 MB, free: 15.04 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000156/0.5499, allocations: 114.5 kB / 465 MB, free: 14.92 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.105e-05/0.55, allocations: 8 kB / 465 MB, free: 14.91 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.5501, allocations: 326.8 kB / 465.3 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003769/0.5505, allocations: 108.9 kB / 465.4 MB, free: 14.48 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004375/0.551, allocations: 200.9 kB / 465.6 MB, free: 14.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003865/0.5514, allocations: 128 kB / 465.8 MB, free: 14.12 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.5514, allocations: 0 / 465.8 MB, free: 14.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009843/0.5524, allocations: 365.6 kB / 466.1 MB, free: 13.76 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004331/0.5529, allocations: 0.7844 MB / 466.9 MB, free: 12.92 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/0.5529, allocations: 4 kB / 466.9 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.671e-05/0.5529, allocations: 7.938 kB / 466.9 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001969/0.5549, allocations: 263.7 kB / 467.2 MB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008911/0.5558, allocations: 0.6562 MB / 467.8 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007331/0.5566, allocations: 56.08 kB / 467.9 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.02e-05/0.5567, allocations: 16 kB / 467.9 MB, free: 11.9 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.5567, allocations: 0 / 467.9 MB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009128/0.5576, allocations: 319.6 kB / 468.2 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.5577, allocations: 4 kB / 468.2 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.5577, allocations: 4 kB / 468.2 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.5587, allocations: 132.1 kB / 468.4 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.558e-05/0.5588, allocations: 7.938 kB / 468.4 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005136/0.5593, allocations: 43.97 kB / 468.4 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.758e-05/0.5594, allocations: 19.95 kB / 468.4 MB, free: 11.38 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 0.0002002/0.5596, allocations: 128.9 kB / 468.6 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/0.5597, allocations: 35.53 kB / 468.6 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001881/0.5599, allocations: 52.36 kB / 468.6 MB, free: 11.15 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.5599, allocations: 4 kB / 468.6 MB, free: 11.15 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.56, allocations: 0 / 468.6 MB, free: 11.15 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.56, allocations: 3.984 kB / 468.6 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001955/0.5619, allocations: 0.8223 MB / 469.5 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.562, allocations: 0 / 469.5 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009233/0.5629, allocations: 104 kB / 469.6 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.419e-05/0.563, allocations: 4 kB / 469.6 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.873e-05/0.563, allocations: 11.95 kB / 469.6 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.245e-06/0.563, allocations: 0 / 469.6 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.5631, allocations: 7.938 kB / 469.6 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001272/0.5643, allocations: 0.5639 MB / 470.2 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002655/0.5646, allocations: 136.7 kB / 470.3 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.625e-05/0.5647, allocations: 11.94 kB / 470.3 MB, free: 9.352 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005776/0.5653, allocations: 47.95 kB / 470.3 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.5655, allocations: 31.86 kB / 470.4 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.815e-05/0.5655, allocations: 12 kB / 470.4 MB, free: 9.262 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004605/0.566, allocations: 250.2 kB / 470.6 MB, free: 9.023 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.566, allocations: 0 / 470.6 MB, free: 9.023 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008753/0.5669, allocations: 140 kB / 470.8 MB, free: 8.887 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.001845/0.5688, allocations: 1.39 MB / 472.2 MB, free: 7.445 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002243/0.571, allocations: 0.5664 MB / 472.7 MB, free: 6.879 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/0.5711, allocations: 4.375 kB / 472.7 MB, free: 6.875 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004109/0.5715, allocations: 131.9 kB / 472.9 MB, free: 6.746 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009374/0.5725, allocations: 82.33 kB / 472.9 MB, free: 6.668 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003274/0.5758, allocations: 0.9378 MB / 473.9 MB, free: 5.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005691/0.5764, allocations: 0.8315 MB / 474.7 MB, free: 4.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004409/0.5769, allocations: 147.4 kB / 474.9 MB, free: 4.676 MB / 346.7 MB Notification: Performance of SimCode: time 1.233e-06/0.5769, allocations: 0 / 474.9 MB, free: 4.676 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.838/3.415, allocations: 7.535 MB / 482.4 MB, free: 13.13 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat