Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.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/IndustrialControlSystems 1.1.0-master/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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(IndustrialControlSystems.Controllers.Examples.TestPI_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPI_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_bias",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.001586/0.001586, allocations: 172 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06201/0.06201, allocations: 10.65 MB / 18.72 MB, free: 1.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.929/1.929, allocations: 205.3 MB / 226.9 MB, free: 7.973 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009853/0.0009852, allocations: 98.38 kB / 277.3 MB, free: 5.508 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 1.831e-05/1.834e-05, allocations: 0 / 333.6 MB, free: 28.4 MB / 250.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1365, allocations: 49.99 MB / 383.6 MB, free: 10.37 MB / 282.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4201/0.5567, allocations: 78.11 MB / 461.7 MB, free: 6.367 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.5569, allocations: 73.83 kB / 461.8 MB, free: 6.328 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.013/0.57, allocations: 4.753 MB / 466.6 MB, free: 2.242 MB / 330.8 MB Notification: Performance of FrontEnd: time 1.282e-06/0.57, allocations: 0 / 466.6 MB, free: 2.242 MB / 330.8 MB Notification: Performance of Transformations before backend: time 2.998e-05/0.5701, allocations: 16 kB / 466.6 MB, free: 2.227 MB / 330.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0009246/0.571, allocations: 0.6206 MB / 467.2 MB, free: 1.586 MB / 330.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.571, allocations: 8.031 kB / 467.2 MB, free: 1.578 MB / 330.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.978e-05/0.5711, allocations: 51.12 kB / 467.3 MB, free: 1.531 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006616/0.5718, allocations: 388.9 kB / 467.6 MB, free: 1.141 MB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.5718, allocations: 16 kB / 467.6 MB, free: 1.125 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.131e-05/0.5719, allocations: 23.98 kB / 467.7 MB, free: 1.102 MB / 330.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004228/0.5723, allocations: 261 kB / 467.9 MB, free: 0.9258 MB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005387/0.5729, allocations: 376.2 kB / 468.3 MB, free: 0.6016 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.175e-05/0.5729, allocations: 7.844 kB / 468.3 MB, free: 0.5938 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.32e-05/0.573, allocations: 4 kB / 468.3 MB, free: 0.5898 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.573, allocations: 8 kB / 468.3 MB, free: 0.582 MB / 330.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00212/0.5751, allocations: 1.46 MB / 469.8 MB, free: 15.27 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006482/0.5758, allocations: 202.4 kB / 470 MB, free: 15.1 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.5759, allocations: 105.4 kB / 470.1 MB, free: 15.03 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.701e-05/0.576, allocations: 8.422 kB / 470.1 MB, free: 15.02 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/0.576, allocations: 38.56 kB / 470.1 MB, free: 14.98 MB / 346.8 MB Notification: Performance of pre-optimization done (n=25): time 1.543e-06/0.576, allocations: 0 / 470.1 MB, free: 14.98 MB / 346.8 MB Notification: Performance of matching and sorting (n=25): time 0.0004115/0.5764, allocations: 233.5 kB / 470.3 MB, free: 14.79 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.5765, allocations: 59.34 kB / 470.4 MB, free: 14.72 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002877/0.5768, allocations: 280.4 kB / 470.7 MB, free: 14.49 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 2.972e-05/0.5768, allocations: 25.7 kB / 470.7 MB, free: 14.46 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.577, allocations: 248.6 kB / 470.9 MB, free: 14.27 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 7.371e-05/0.577, allocations: 96.06 kB / 471 MB, free: 14.18 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.197e-05/0.5771, allocations: 3.938 kB / 471 MB, free: 14.18 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.5772, allocations: 354.8 kB / 471.4 MB, free: 13.84 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.5773, allocations: 85.59 kB / 471.5 MB, free: 13.79 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.5775, allocations: 196 kB / 471.7 MB, free: 13.58 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001858/0.5777, allocations: 129 kB / 471.8 MB, free: 13.49 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.5777, allocations: 4 kB / 471.8 MB, free: 13.48 MB / 346.8 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005026/0.5783, allocations: 382.8 kB / 472.2 MB, free: 13.18 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.5783, allocations: 4 kB / 472.2 MB, free: 13.17 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.5783, allocations: 4 kB / 472.2 MB, free: 13.17 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/0.5783, allocations: 11.98 kB / 472.2 MB, free: 13.16 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003935/0.5787, allocations: 103 kB / 472.3 MB, free: 13.06 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.561e-05/0.5788, allocations: 11.97 kB / 472.3 MB, free: 13.05 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.5789, allocations: 35.67 kB / 472.3 MB, free: 13.01 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.812e-05/0.5789, allocations: 15.06 kB / 472.4 MB, free: 13 MB / 346.8 MB Warning: Assuming fixed start value for the following 9 variables: ProcessBias.w:VARIABLE(protected = true ) "proper part of the output" type: Real ProcessBias.U[2]:VARIABLE(protected = true ) type: Real [2] ProcessBias.Y[3]:VARIABLE(protected = true ) type: Real [3] ProcessCtrl.Y[3]:VARIABLE(protected = true ) type: Real [3] ProcessCtrl.U[2]:VARIABLE(protected = true ) type: Real [2] ProcessCtrl.w:VARIABLE(protected = true ) "proper part of the output" type: Real processNoCtrl.Y[3]:VARIABLE(protected = true ) type: Real [3] processNoCtrl.U[2]:VARIABLE(protected = true ) type: Real [2] processNoCtrl.w:VARIABLE(protected = true ) "proper part of the output" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (R_Bias.TS_in,R.TS_in,R_Bias.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * 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 prepare postOptimizeDAE: time 0.0001642/0.5791, allocations: 137.9 kB / 472.5 MB, free: 12.86 MB / 346.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00032/0.5794, allocations: 237.9 kB / 472.7 MB, free: 12.67 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.634e-05/0.5795, allocations: 31.62 kB / 472.7 MB, free: 12.64 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004868/0.58, allocations: 302.3 kB / 473 MB, free: 12.4 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.58, allocations: 4 kB / 473 MB, free: 12.4 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.58, allocations: 3.938 kB / 473.1 MB, free: 12.39 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.5801, allocations: 0 / 473.1 MB, free: 12.39 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000378/0.5804, allocations: 344.6 kB / 473.4 MB, free: 12.08 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.5804, allocations: 4 kB / 473.4 MB, free: 12.08 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004101/0.5809, allocations: 87.06 kB / 473.5 MB, free: 12 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.5809, allocations: 3.938 kB / 473.5 MB, free: 11.99 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/0.5809, allocations: 4 kB / 473.5 MB, free: 11.99 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.5809, allocations: 0 / 473.5 MB, free: 11.99 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5809, allocations: 0 / 473.5 MB, free: 11.99 MB / 346.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005473/0.5815, allocations: 480.6 kB / 474 MB, free: 11.59 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.51e-05/0.5816, allocations: 111.7 kB / 474.1 MB, free: 11.46 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.928e-05/0.5816, allocations: 4 kB / 474.1 MB, free: 11.46 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.5818, allocations: 11.98 kB / 474.1 MB, free: 11.45 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.102e-05/0.5818, allocations: 23.53 kB / 474.1 MB, free: 11.43 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.5818, allocations: 4 kB / 474.1 MB, free: 11.43 MB / 346.8 MB Notification: Performance of sorting global known variables: time 0.0001873/0.582, allocations: 218.6 kB / 474.3 MB, free: 11.25 MB / 346.8 MB Notification: Performance of sort global known variables: time 1.41e-07/0.582, allocations: 0 / 474.3 MB, free: 11.25 MB / 346.8 MB Notification: Performance of remove unused functions: time 0.0003242/0.5824, allocations: 63.75 kB / 474.4 MB, free: 11.19 MB / 346.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (R.FBout,R_Bias.FBout,ProcessCtrl.Y[3],ProcessCtrl.U[2],ProcessCtrl.w,processNoCtrl.Y[3],processNoCtrl.U[2],processNoCtrl.w,ProcessBias.Y[3],ProcessBias.U[2],ProcessBias.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 29 * 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.0008219/0.5832, allocations: 1.004 MB / 475.4 MB, free: 10.25 MB / 346.8 MB Notification: Performance of simCode: created initialization part: time 0.000363/0.5836, allocations: 260.7 kB / 475.6 MB, free: 10.06 MB / 346.8 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5836, allocations: 0 / 475.6 MB, free: 10.06 MB / 346.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001461/0.5837, allocations: 122.1 kB / 475.8 MB, free: 9.973 MB / 346.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002601/0.584, allocations: 26.7 kB / 475.8 MB, free: 9.957 MB / 346.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.5853, allocations: 0.7545 MB / 476.5 MB, free: 9.227 MB / 346.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004134/0.5857, allocations: 0.8471 MB / 477.4 MB, free: 8.363 MB / 346.8 MB Notification: Performance of simCode: alias equations: time 0.0001971/0.5859, allocations: 75.16 kB / 477.5 MB, free: 8.289 MB / 346.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.5861, allocations: 149.9 kB / 477.6 MB, free: 8.242 MB / 346.8 MB Notification: Performance of SimCode: time 2.51e-07/0.5861, allocations: 0 / 477.6 MB, free: 8.242 MB / 346.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02728/0.6133, allocations: 5.34 MB / 482.9 MB, free: 2.918 MB / 346.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000243/0.6137, allocations: 154.7 kB / 483.1 MB, free: 2.73 MB / 346.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.342/2.956, allocations: 4.031 kB / 483.1 MB, free: 2.727 MB / 346.8 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_bias_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe 2>&1)