Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 221.5 MB / 230.3 MB, free: 7.555 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008731/0.0008731, allocations: 90.3 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.024e-05/2.009e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1203, allocations: 50.43 MB / 387.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.388/0.5084, allocations: 81.81 MB / 469.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.5087, allocations: 71.97 kB / 469.4 MB, free: 12.79 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02303/0.5317, allocations: 8.241 MB / 477.7 MB, free: 4.535 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5318, allocations: 0 / 477.7 MB, free: 4.535 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.511e-05/0.5318, allocations: 8 kB / 477.7 MB, free: 4.527 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.001162/0.533, allocations: 0.6822 MB / 478.4 MB, free: 3.797 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.533, allocations: 8.031 kB / 478.4 MB, free: 3.789 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.932e-05/0.5331, allocations: 55.34 kB / 478.4 MB, free: 3.734 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005408/0.5337, allocations: 348.4 kB / 478.8 MB, free: 3.355 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.806e-05/0.5337, allocations: 12.34 kB / 478.8 MB, free: 3.344 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.986e-05/0.5338, allocations: 35.89 kB / 478.8 MB, free: 3.309 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004598/0.5343, allocations: 245.5 kB / 479.1 MB, free: 3.066 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005898/0.5349, allocations: 329.7 kB / 479.4 MB, free: 2.719 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.125e-05/0.5349, allocations: 7.906 kB / 479.4 MB, free: 2.711 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.373e-05/0.5349, allocations: 0 / 479.4 MB, free: 2.711 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.535, allocations: 12 kB / 479.4 MB, free: 2.699 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002082/0.5371, allocations: 1.499 MB / 480.9 MB, free: 1.121 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004644/0.5375, allocations: 240.4 kB / 481.1 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.5377, allocations: 100.9 kB / 481.2 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.433e-05/0.5377, allocations: 4.656 kB / 481.2 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.5378, allocations: 38.55 kB / 481.3 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 1.413e-06/0.5378, allocations: 4 kB / 481.3 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001574/0.5394, allocations: 0.9471 MB / 482.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.55e-05/0.5395, allocations: 85.05 kB / 482.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004295/0.5399, allocations: 282.3 kB / 482.6 MB, free: 15.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.54, allocations: 25.7 kB / 482.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002053/0.5402, allocations: 248 kB / 482.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.707e-05/0.5403, allocations: 110.3 kB / 483 MB, free: 14.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.577e-05/0.5403, allocations: 0 / 483 MB, free: 14.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002202/0.5405, allocations: 346.8 kB / 483.3 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000194/0.5407, allocations: 108.9 kB / 483.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002967/0.541, allocations: 180.1 kB / 483.6 MB, free: 14.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002386/0.5413, allocations: 120.4 kB / 483.7 MB, free: 14.13 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.5413, allocations: 0 / 483.7 MB, free: 14.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006097/0.5419, allocations: 353 kB / 484 MB, free: 13.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004416/0.5423, allocations: 0.7862 MB / 484.8 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.5424, allocations: 4 kB / 484.8 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.5424, allocations: 4 kB / 484.8 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/0.5435, allocations: 259.7 kB / 485.1 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005639/0.544, allocations: 0.6524 MB / 485.7 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003562/0.5444, allocations: 52.03 kB / 485.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.764e-05/0.5444, allocations: 12 kB / 485.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.5445, allocations: 4 kB / 485.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004601/0.5449, allocations: 279.6 kB / 486.1 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.5449, allocations: 8 kB / 486.1 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.522e-06/0.545, allocations: 4 kB / 486.1 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005023/0.5455, allocations: 124.1 kB / 486.2 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.5455, allocations: 11.94 kB / 486.2 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002825/0.5458, allocations: 35.95 kB / 486.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.524e-05/0.5458, allocations: 16 kB / 486.3 MB, free: 11.46 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.0001337/0.5459, allocations: 104.9 kB / 486.4 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004018/0.5464, allocations: 257.6 kB / 486.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.607e-05/0.5464, allocations: 35.53 kB / 486.7 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001141/0.5465, allocations: 40.53 kB / 486.7 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.5466, allocations: 7.984 kB / 486.7 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.5466, allocations: 0 / 486.7 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.5466, allocations: 0 / 486.7 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00109/0.5477, allocations: 0.7439 MB / 487.5 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.5477, allocations: 0 / 487.5 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004472/0.5481, allocations: 95.88 kB / 487.5 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.273e-06/0.5482, allocations: 4 kB / 487.6 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.5482, allocations: 4.125 kB / 487.6 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.942e-06/0.5482, allocations: 11.88 kB / 487.6 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.5482, allocations: 0 / 487.6 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000708/0.5489, allocations: 0.5447 MB / 488.1 MB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.5491, allocations: 136.6 kB / 488.2 MB, free: 9.344 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.297e-05/0.5491, allocations: 7.984 kB / 488.3 MB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000302/0.5494, allocations: 39.97 kB / 488.3 MB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.512e-05/0.5495, allocations: 23.91 kB / 488.3 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.047e-05/0.5496, allocations: 15.98 kB / 488.3 MB, free: 9.258 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002241/0.5498, allocations: 208.6 kB / 488.5 MB, free: 9.055 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5498, allocations: 0 / 488.5 MB, free: 9.055 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005593/0.5504, allocations: 120 kB / 488.7 MB, free: 8.938 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.001179/0.5516, allocations: 1.366 MB / 490 MB, free: 7.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001171/0.5527, allocations: 0.5462 MB / 490.6 MB, free: 6.973 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.5528, allocations: 0 / 490.6 MB, free: 6.973 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001959/0.553, allocations: 128.1 kB / 490.7 MB, free: 6.848 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005367/0.5535, allocations: 79.73 kB / 490.8 MB, free: 6.773 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.5553, allocations: 0.8786 MB / 491.6 MB, free: 5.848 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004047/0.5557, allocations: 0.8275 MB / 492.5 MB, free: 4.992 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003363/0.5561, allocations: 81.2 kB / 492.6 MB, free: 4.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000213/0.5563, allocations: 139.4 kB / 492.7 MB, free: 4.773 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5563, allocations: 0 / 492.7 MB, free: 4.773 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02757/0.5839, allocations: 7.566 MB / 0.4885 GB, free: 13.25 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002189/0.5842, allocations: 126.2 kB / 0.4887 GB, free: 13.06 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.182/2.766, allocations: 3.938 kB / 0.4887 GB, free: 13.06 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat