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.001824/0.001824, allocations: 181.9 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000935/0.000935, allocations: 90.52 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002956/0.0002957, allocations: 8 kB / 351.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2744, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1061/0.3805, allocations: 82.54 MB / 484.1 MB, free: 13.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/0.3808, allocations: 72.94 kB / 484.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02301/0.4038, allocations: 8.316 MB / 492.5 MB, free: 5.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.4039, allocations: 0 / 492.5 MB, free: 5.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.304e-05/0.4039, allocations: 8 kB / 492.5 MB, free: 5.512 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.001241/0.4051, allocations: 0.7289 MB / 493.2 MB, free: 4.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.4052, allocations: 12.03 kB / 493.3 MB, free: 4.719 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.597e-05/0.4053, allocations: 78.52 kB / 493.3 MB, free: 4.633 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.469e-05/0.4054, allocations: 51.34 kB / 493.4 MB, free: 4.582 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005039/0.4059, allocations: 359.9 kB / 493.7 MB, free: 4.195 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.4059, allocations: 40.88 kB / 493.8 MB, free: 4.156 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.471e-05/0.406, allocations: 40 kB / 493.8 MB, free: 4.117 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000841/0.4069, allocations: 462.3 kB / 494.3 MB, free: 3.641 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.4069, allocations: 3.906 kB / 494.3 MB, free: 3.637 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.989e-05/0.4069, allocations: 20 kB / 494.3 MB, free: 3.617 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.407, allocations: 8 kB / 494.3 MB, free: 3.609 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009406/0.4079, allocations: 419.6 kB / 494.7 MB, free: 3.195 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002052/0.41, allocations: 1.583 MB / 496.3 MB, free: 1.523 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000785/0.4108, allocations: 333.4 kB / 496.6 MB, free: 1.184 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.073e-05/0.4108, allocations: 8.141 kB / 496.6 MB, free: 1.176 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.4108, allocations: 39.06 kB / 496.7 MB, free: 1.129 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 1.603e-06/0.4109, allocations: 0 / 496.7 MB, free: 1.129 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.00319/0.4141, allocations: 1.515 MB / 498.2 MB, free: 15.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.229e-05/0.4141, allocations: 81.11 kB / 498.3 MB, free: 15.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003376/0.4145, allocations: 328.8 kB / 498.6 MB, free: 15.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/0.4145, allocations: 29.7 kB / 498.6 MB, free: 15.06 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.4147, allocations: 239.9 kB / 498.8 MB, free: 14.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.717e-05/0.4148, allocations: 114.3 kB / 498.9 MB, free: 14.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.92e-05/0.4148, allocations: 8 kB / 499 MB, free: 14.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.415, allocations: 350.8 kB / 499.3 MB, free: 14.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00043/0.4154, allocations: 184.8 kB / 499.5 MB, free: 14.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004867/0.4159, allocations: 272.8 kB / 499.7 MB, free: 13.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000493/0.4164, allocations: 203.8 kB / 499.9 MB, free: 13.67 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.4164, allocations: 8 kB / 500 MB, free: 13.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001064/0.4175, allocations: 0.5164 MB / 0.4887 GB, free: 13.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003065/0.4178, allocations: 0.7828 MB / 0.4895 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.4178, allocations: 4 kB / 0.4895 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.4178, allocations: 4 kB / 0.4895 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008986/0.4187, allocations: 267.7 kB / 0.4898 GB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000614/0.4194, allocations: 0.6952 MB / 0.4904 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003307/0.4197, allocations: 52.05 kB / 0.4905 GB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.051e-05/0.4197, allocations: 16 kB / 0.4905 GB, free: 11.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.107e-06/0.4198, allocations: 6.812 kB / 0.4905 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009058/0.4207, allocations: 443.6 kB / 0.4909 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.4207, allocations: 4 kB / 0.4909 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.29e-06/0.4207, allocations: 7.938 kB / 0.4909 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004777/0.4212, allocations: 132 kB / 0.4911 GB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.4212, allocations: 4 kB / 0.4911 GB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002728/0.4215, allocations: 39.95 kB / 0.4911 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.45e-05/0.4215, allocations: 23.94 kB / 0.4911 GB, free: 10.59 MB / 378.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 () * Number of clocked 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.0002525/0.4218, allocations: 251.8 kB / 0.4914 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.566e-05/0.4218, allocations: 39.53 kB / 0.4914 GB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.4219, allocations: 44.25 kB / 0.4915 GB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.422, allocations: 4 kB / 0.4915 GB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.422, allocations: 0 / 0.4915 GB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.422, allocations: 3.984 kB / 0.4915 GB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001671/0.4237, allocations: 0.9619 MB / 0.4924 GB, free: 9.219 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.4237, allocations: 0 / 0.4924 GB, free: 9.219 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004333/0.4241, allocations: 104 kB / 0.4925 GB, free: 9.117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/0.4241, allocations: 4 kB / 0.4925 GB, free: 9.113 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.663e-05/0.4242, allocations: 8 kB / 0.4925 GB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.4242, allocations: 0 / 0.4925 GB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.4242, allocations: 4 kB / 0.4925 GB, free: 9.102 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.4256, allocations: 0.7865 MB / 0.4933 GB, free: 8.262 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/0.4257, allocations: 136.6 kB / 0.4934 GB, free: 8.109 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.983e-05/0.4258, allocations: 8 kB / 0.4934 GB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002958/0.4261, allocations: 47.95 kB / 0.4935 GB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.461e-05/0.4262, allocations: 23.97 kB / 0.4935 GB, free: 8.031 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.4262, allocations: 12 kB / 0.4935 GB, free: 8.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002667/0.4265, allocations: 251.2 kB / 0.4937 GB, free: 7.781 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4265, allocations: 0 / 0.4937 GB, free: 7.781 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005318/0.427, allocations: 144 kB / 0.4939 GB, free: 7.641 MB / 378.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 () * Number of clocked 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.001885/0.4289, allocations: 1.621 MB / 0.4955 GB, free: 5.969 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001847/0.4308, allocations: 0.7773 MB / 0.4962 GB, free: 5.191 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4308, allocations: 0 / 0.4962 GB, free: 5.191 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004405/0.4313, allocations: 200.1 kB / 0.4964 GB, free: 4.996 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005323/0.4318, allocations: 89.14 kB / 0.4965 GB, free: 4.914 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005106/0.4369, allocations: 4.026 MB / 0.5004 GB, free: 0.793 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1982/0.6351, allocations: 0.8206 MB / 0.5012 GB, free: 99.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004776/0.6356, allocations: 58.28 kB / 0.5013 GB, free: 99.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003097/0.6359, allocations: 140.1 kB / 0.5014 GB, free: 99.4 MB / 378.7 MB Notification: Performance of SimCode: time 1.312e-06/0.636, allocations: 0 / 0.5014 GB, free: 99.4 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02168/0.6576, allocations: 7.951 MB / 0.5092 GB, free: 99.03 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001431/0.6578, allocations: 199.1 kB / 0.5094 GB, free: 98.79 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.2/2.858, allocations: 0 / 0.5094 GB, free: 98.79 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