Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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.TestPD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_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.001117/0.001117, allocations: 173.9 kB / 7.648 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.05981/0.05981, allocations: 10.67 MB / 18.73 MB, free: 1.324 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.957/1.957, allocations: 205.3 MB / 226.9 MB, free: 7.883 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.001145/0.001145, allocations: 106.4 kB / 277.3 MB, free: 5.418 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.668e-05/1.668e-05, allocations: 0 / 333.6 MB, free: 28.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1225, allocations: 50 MB / 383.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4573/0.5799, allocations: 79.23 MB / 462.9 MB, free: 5.414 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002604/0.5802, allocations: 82.73 kB / 462.9 MB, free: 5.371 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02135/0.6016, allocations: 7.294 MB / 470.2 MB, free: 15.17 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.6016, allocations: 0 / 470.2 MB, free: 15.17 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.747e-05/0.6017, allocations: 20.16 kB / 470.3 MB, free: 15.15 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001267/0.603, allocations: 0.7486 MB / 471 MB, free: 14.38 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.603, allocations: 8.031 kB / 471 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.6031, allocations: 55.34 kB / 471.1 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007424/0.6039, allocations: 450.2 kB / 471.5 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.717e-05/0.6039, allocations: 15.88 kB / 471.5 MB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.737e-05/0.604, allocations: 27.91 kB / 471.5 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005938/0.6046, allocations: 353.7 kB / 471.9 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007002/0.6053, allocations: 472.3 kB / 472.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.025e-05/0.6054, allocations: 8.5 kB / 472.4 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.08e-05/0.6054, allocations: 3.984 kB / 472.4 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.6054, allocations: 12 kB / 472.4 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002828/0.6083, allocations: 1.734 MB / 474.1 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004567/0.6087, allocations: 251 kB / 474.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002224/0.609, allocations: 172.1 kB / 474.5 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.634e-05/0.609, allocations: 8.828 kB / 474.5 MB, free: 11.33 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003438/0.6094, allocations: 248.4 kB / 474.8 MB, free: 11.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 2.885e-06/0.6094, allocations: 0 / 474.8 MB, free: 11.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.0008109/0.6102, allocations: 419.1 kB / 475.2 MB, free: 10.78 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.24e-05/0.6103, allocations: 85.11 kB / 475.3 MB, free: 10.68 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000436/0.6107, allocations: 373.6 kB / 475.6 MB, free: 10.38 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.053e-05/0.6108, allocations: 29.7 kB / 475.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.611, allocations: 281.9 kB / 475.9 MB, free: 10.13 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.6111, allocations: 129.9 kB / 476.1 MB, free: 10.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.032e-05/0.6112, allocations: 3.938 kB / 476.1 MB, free: 10.02 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002159/0.6114, allocations: 364.2 kB / 476.4 MB, free: 9.676 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002338/0.6116, allocations: 151 kB / 476.6 MB, free: 9.578 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003873/0.612, allocations: 322.2 kB / 476.9 MB, free: 9.258 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004115/0.6124, allocations: 204.2 kB / 477.1 MB, free: 9.105 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.6125, allocations: 0 / 477.1 MB, free: 9.105 MB / 346.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001006/0.6135, allocations: 0.6442 MB / 477.7 MB, free: 8.582 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.943e-05/0.6135, allocations: 40.44 kB / 477.8 MB, free: 8.539 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.6136, allocations: 4.656 kB / 477.8 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.459e-05/0.6136, allocations: 12 kB / 477.8 MB, free: 8.523 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005431/0.6142, allocations: 137.4 kB / 477.9 MB, free: 8.395 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.753e-05/0.6142, allocations: 11.98 kB / 477.9 MB, free: 8.383 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002432/0.6144, allocations: 47.52 kB / 478 MB, free: 8.336 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.554e-05/0.6145, allocations: 23.5 kB / 478 MB, free: 8.316 MB / 346.7 MB Warning: Assuming fixed start value for the following 15 variables: processNoCtrl.w:VARIABLE(protected = true ) "proper part of the output" type: Real processNoCtrl.U[3]:VARIABLE(protected = true ) type: Real [3] processNoCtrl.Y[3]:VARIABLE(protected = true ) type: Real [4] processNoCtrl.Y[4]:VARIABLE(protected = true ) type: Real [4] processNoCtrl.U[2]:VARIABLE(protected = true ) type: Real [3] ProcessBias.w:VARIABLE(protected = true ) "proper part of the output" type: Real ProcessBias.U[3]:VARIABLE(protected = true ) type: Real [3] ProcessBias.U[2]:VARIABLE(protected = true ) type: Real [3] ProcessBias.Y[4]:VARIABLE(protected = true ) type: Real [4] ProcessCtrl.Y[3]:VARIABLE(protected = true ) type: Real [4] ProcessCtrl.Y[4]:VARIABLE(protected = true ) type: Real [4] ProcessCtrl.U[2]:VARIABLE(protected = true ) type: Real [3] ProcessCtrl.U[3]:VARIABLE(protected = true ) type: Real [3] ProcessCtrl.w:VARIABLE(protected = true ) "proper part of the output" type: Real ProcessBias.Y[3]:VARIABLE(protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,Disturbance.a,Disturbance.b,Disturbance.last,$PRE.Disturbance.nextEvent,Disturbance.nextEvent,Disturbance.nextEventScaled,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 (70): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 1 * 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.0002848/0.6148, allocations: 185.3 kB / 478.2 MB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007261/0.6155, allocations: 442.8 kB / 478.6 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.516e-05/0.6156, allocations: 47.44 kB / 478.7 MB, free: 7.73 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008407/0.6165, allocations: 480.2 kB / 479.1 MB, free: 7.371 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.6165, allocations: 4 kB / 479.1 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.6165, allocations: 4 kB / 479.1 MB, free: 7.363 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.6165, allocations: 4 kB / 479.1 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006414/0.6172, allocations: 415.3 kB / 479.5 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.6172, allocations: 0 / 479.5 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004946/0.6177, allocations: 91.5 kB / 479.6 MB, free: 6.906 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.6177, allocations: 4.047 kB / 479.6 MB, free: 6.902 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.378e-05/0.6178, allocations: 19.8 kB / 479.7 MB, free: 6.887 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.6178, allocations: 0 / 479.7 MB, free: 6.887 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.6178, allocations: 0 / 479.7 MB, free: 6.887 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009286/0.6187, allocations: 0.6695 MB / 480.3 MB, free: 6.348 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.455e-05/0.6188, allocations: 124.5 kB / 480.4 MB, free: 6.207 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.226e-05/0.6189, allocations: 14.95 kB / 480.5 MB, free: 6.195 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.6191, allocations: 11.98 kB / 480.5 MB, free: 6.184 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.067e-05/0.6192, allocations: 23.02 kB / 480.5 MB, free: 6.164 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.062e-05/0.6192, allocations: 23.11 kB / 480.5 MB, free: 6.145 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003058/0.6195, allocations: 273 kB / 480.8 MB, free: 5.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6195, allocations: 4 kB / 480.8 MB, free: 5.926 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004874/0.62, allocations: 103.8 kB / 480.9 MB, free: 5.824 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 17 (R.Fin,R_Bias.Fin,ProcessCtrl.Y[3],ProcessCtrl.Y[4],ProcessCtrl.U[2],ProcessCtrl.U[3],ProcessCtrl.w,processNoCtrl.Y[3],processNoCtrl.Y[4],processNoCtrl.U[2],processNoCtrl.U[3],processNoCtrl.w,ProcessBias.Y[3],ProcessBias.Y[4],ProcessBias.U[2],ProcessBias.U[3],ProcessBias.w) * Number of discrete variables: 6 ($whenCondition1,Disturbance.a,Disturbance.b,Disturbance.last,Disturbance.nextEvent,Disturbance.nextEventScaled) * Number of discrete states: 6 (Disturbance.nextEvent,Disturbance.last,Disturbance.nextEventScaled,Disturbance.b,Disturbance.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * 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.001312/0.6213, allocations: 1.195 MB / 482.1 MB, free: 4.738 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006706/0.622, allocations: 0.4992 MB / 482.6 MB, free: 4.355 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.622, allocations: 0 / 482.6 MB, free: 4.355 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002685/0.6223, allocations: 257.6 kB / 482.8 MB, free: 4.156 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.6226, allocations: 34.66 kB / 482.9 MB, free: 4.137 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001736/0.6244, allocations: 1.054 MB / 483.9 MB, free: 3.133 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005033/0.6249, allocations: 0.8921 MB / 484.8 MB, free: 2.227 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002778/0.6252, allocations: 103.3 kB / 484.9 MB, free: 2.125 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002111/0.6254, allocations: 176.1 kB / 485.1 MB, free: 2.078 MB / 346.7 MB Notification: Performance of SimCode: time 5.41e-07/0.6254, allocations: 4 kB / 485.1 MB, free: 2.074 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03246/0.6579, allocations: 7.654 MB / 492.7 MB, free: 10.44 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002799/0.6582, allocations: 154.7 kB / 492.9 MB, free: 10.25 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.312/2.97, allocations: 7.938 kB / 492.9 MB, free: 10.25 MB / 362.7 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe 2>&1)