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.002189/0.002188, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.974/1.974, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001153/0.001152, allocations: 84.95 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.362e-05/2.324e-05, allocations: 4 kB / 314.9 MB, free: 9.082 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3377, allocations: 47.56 MB / 362.4 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1321/0.4699, allocations: 81.06 MB / 443.5 MB, free: 5.242 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/0.4702, allocations: 79.95 kB / 443.6 MB, free: 5.164 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0369/0.5071, allocations: 8.251 MB / 451.8 MB, free: 12.96 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.5072, allocations: 4 kB / 451.8 MB, free: 12.95 MB / 347.1 MB Notification: Performance of Transformations before backend: time 4.718e-05/0.5072, allocations: 12.12 kB / 451.8 MB, free: 12.94 MB / 347.1 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.001754/0.509, allocations: 0.6834 MB / 452.5 MB, free: 12.21 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.5091, allocations: 8.031 kB / 452.5 MB, free: 12.21 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.5092, allocations: 47.44 kB / 452.6 MB, free: 12.16 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000783/0.51, allocations: 368.6 kB / 452.9 MB, free: 11.76 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.09e-05/0.5101, allocations: 12 kB / 452.9 MB, free: 11.75 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.947e-05/0.5102, allocations: 27.91 kB / 453 MB, free: 11.72 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00074/0.5109, allocations: 245.5 kB / 453.2 MB, free: 11.48 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008031/0.5118, allocations: 329.7 kB / 453.5 MB, free: 11.13 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.5118, allocations: 4 kB / 453.5 MB, free: 11.12 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.433e-05/0.5119, allocations: 4.938 kB / 453.5 MB, free: 11.12 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/0.5119, allocations: 12 kB / 453.5 MB, free: 11.11 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0034/0.5153, allocations: 1.517 MB / 455.1 MB, free: 9.516 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007361/0.5161, allocations: 239.1 kB / 455.3 MB, free: 9.266 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002601/0.5164, allocations: 100.9 kB / 455.4 MB, free: 9.164 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.613e-05/0.5164, allocations: 9.109 kB / 455.4 MB, free: 9.156 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.5165, allocations: 38.52 kB / 455.4 MB, free: 9.109 MB / 347.1 MB Notification: Performance of pre-optimization done (n=30): time 3.056e-06/0.5165, allocations: 4 kB / 455.4 MB, free: 9.105 MB / 347.1 MB Notification: Performance of matching and sorting (n=32): time 0.002356/0.5189, allocations: 0.9362 MB / 456.4 MB, free: 8.078 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.263e-05/0.519, allocations: 81.11 kB / 456.5 MB, free: 7.98 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004897/0.5195, allocations: 290.2 kB / 456.7 MB, free: 7.699 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 4.516e-05/0.5195, allocations: 25.7 kB / 456.8 MB, free: 7.668 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002156/0.5198, allocations: 290.5 kB / 457 MB, free: 7.379 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.5199, allocations: 118.3 kB / 457.2 MB, free: 7.262 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.362e-05/0.5199, allocations: 0 / 457.2 MB, free: 7.262 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.5201, allocations: 322.8 kB / 457.5 MB, free: 6.938 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000297/0.5204, allocations: 108.8 kB / 457.6 MB, free: 6.828 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003715/0.5208, allocations: 186 kB / 457.8 MB, free: 6.617 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000337/0.5211, allocations: 113.1 kB / 457.9 MB, free: 6.508 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.5212, allocations: 0 / 457.9 MB, free: 6.508 MB / 347.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008993/0.5221, allocations: 334.3 kB / 458.2 MB, free: 6.176 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003796/0.5225, allocations: 0.7862 MB / 459 MB, free: 5.328 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.5225, allocations: 4 kB / 459 MB, free: 5.324 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.684e-05/0.5225, allocations: 4 kB / 459 MB, free: 5.32 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00186/0.5244, allocations: 263.7 kB / 459.3 MB, free: 5.062 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008887/0.5253, allocations: 0.6562 MB / 459.9 MB, free: 4.383 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006559/0.526, allocations: 39.98 kB / 460 MB, free: 4.344 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.443e-05/0.526, allocations: 16 kB / 460 MB, free: 4.328 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.5261, allocations: 6.656 kB / 460 MB, free: 4.324 MB / 347.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007754/0.5269, allocations: 280 kB / 460.2 MB, free: 4.051 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.5269, allocations: 4 kB / 460.3 MB, free: 4.047 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.5269, allocations: 4 kB / 460.3 MB, free: 4.043 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009552/0.5279, allocations: 132.1 kB / 460.4 MB, free: 3.914 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.5279, allocations: 4 kB / 460.4 MB, free: 3.91 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004579/0.5284, allocations: 39.91 kB / 460.4 MB, free: 3.871 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.37e-05/0.5284, allocations: 14.48 kB / 460.4 MB, free: 3.859 MB / 347.1 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.0001774/0.5286, allocations: 121.9 kB / 460.6 MB, free: 3.734 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007088/0.5293, allocations: 241.4 kB / 460.8 MB, free: 3.492 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.49e-05/0.5294, allocations: 39.53 kB / 460.8 MB, free: 3.453 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001415/0.5296, allocations: 36.58 kB / 460.9 MB, free: 3.418 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.5296, allocations: 4 kB / 460.9 MB, free: 3.414 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/0.5296, allocations: 4 kB / 460.9 MB, free: 3.41 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.5297, allocations: 7.922 kB / 460.9 MB, free: 3.402 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001665/0.5313, allocations: 0.7449 MB / 461.6 MB, free: 2.605 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.5314, allocations: 0 / 461.6 MB, free: 2.605 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008566/0.5322, allocations: 95.86 kB / 461.7 MB, free: 2.512 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.276e-05/0.5323, allocations: 9.062 kB / 461.7 MB, free: 2.504 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.153e-05/0.5323, allocations: 8 kB / 461.7 MB, free: 2.496 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.333e-06/0.5323, allocations: 3.953 kB / 461.7 MB, free: 2.492 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.728e-06/0.5324, allocations: 7.938 kB / 461.8 MB, free: 2.484 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.5335, allocations: 0.5324 MB / 462.3 MB, free: 1.898 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002302/0.5338, allocations: 128.7 kB / 462.4 MB, free: 1.754 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.301e-05/0.5338, allocations: 4 kB / 462.4 MB, free: 1.75 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005637/0.5344, allocations: 47.95 kB / 462.5 MB, free: 1.703 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.973e-05/0.5345, allocations: 19.97 kB / 462.5 MB, free: 1.684 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.062e-05/0.5346, allocations: 15.89 kB / 462.5 MB, free: 1.668 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0003597/0.535, allocations: 222.4 kB / 462.7 MB, free: 1.449 MB / 347.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.535, allocations: 0 / 462.7 MB, free: 1.449 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0008071/0.5358, allocations: 119.9 kB / 462.8 MB, free: 1.332 MB / 347.1 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.001598/0.5374, allocations: 1.362 MB / 464.2 MB, free: 15.92 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.002052/0.5395, allocations: 0.5393 MB / 464.7 MB, free: 15.38 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.5396, allocations: 0 / 464.7 MB, free: 15.38 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003635/0.5399, allocations: 123.9 kB / 464.9 MB, free: 15.26 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009032/0.5408, allocations: 85.81 kB / 464.9 MB, free: 15.18 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00293/0.5438, allocations: 0.9003 MB / 465.8 MB, free: 14.21 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005284/0.5444, allocations: 0.8312 MB / 466.7 MB, free: 13.36 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003885/0.5448, allocations: 143.4 kB / 466.8 MB, free: 13.22 MB / 363.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5448, allocations: 0 / 466.8 MB, free: 13.22 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.827/3.372, allocations: 7.42 MB / 474.2 MB, free: 5.836 MB / 363.1 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