Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_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.TestD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_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.01093/0.01093, allocations: 170.2 kB / 15.11 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07775/0.07775, allocations: 10.73 MB / 26.59 MB, free: 2.23 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.846/1.846, allocations: 205.4 MB / 235.2 MB, free: 176 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009949/0.0009948, allocations: 86.95 kB / 285.9 MB, free: 10.65 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003484/0.0003484, allocations: 8 kB / 346.5 MB, free: 5.078 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1189, allocations: 49.99 MB / 396.5 MB, free: 2.996 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3266/0.4455, allocations: 79.67 MB / 476.2 MB, free: 16.15 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.4458, allocations: 80.83 kB / 476.2 MB, free: 16.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01914/0.465, allocations: 7.326 MB / 483.6 MB, free: 10.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.465, allocations: 0 / 483.6 MB, free: 10.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.211e-05/0.4651, allocations: 19.94 kB / 483.6 MB, free: 10.38 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.001317/0.4664, allocations: 0.796 MB / 484.4 MB, free: 9.559 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.4664, allocations: 12.03 kB / 484.4 MB, free: 9.547 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001325/0.4666, allocations: 80.47 kB / 484.5 MB, free: 9.484 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000124/0.4667, allocations: 59.34 kB / 484.5 MB, free: 9.426 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006882/0.4674, allocations: 438.5 kB / 485 MB, free: 8.992 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.5e-05/0.4674, allocations: 35.25 kB / 485 MB, free: 8.969 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.774e-05/0.4675, allocations: 41.56 kB / 485 MB, free: 8.941 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007742/0.4683, allocations: 0.5305 MB / 485.6 MB, free: 8.512 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.812e-05/0.4684, allocations: 11.86 kB / 485.6 MB, free: 8.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.242e-05/0.4684, allocations: 14.19 kB / 485.6 MB, free: 8.496 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.4684, allocations: 11.98 kB / 485.6 MB, free: 8.484 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006572/0.4691, allocations: 411.3 kB / 486 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002639/0.4717, allocations: 1.823 MB / 487.8 MB, free: 6.582 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004992/0.4723, allocations: 268.7 kB / 488.1 MB, free: 6.387 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.872e-05/0.4723, allocations: 11.98 kB / 488.1 MB, free: 6.375 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003593/0.4727, allocations: 275.6 kB / 488.4 MB, free: 6.145 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 3.046e-06/0.4727, allocations: 4 kB / 488.4 MB, free: 6.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.0009547/0.4737, allocations: 0.684 MB / 489.1 MB, free: 5.551 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/0.4737, allocations: 85.11 kB / 489.1 MB, free: 5.449 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003973/0.4741, allocations: 432.8 kB / 489.6 MB, free: 5.109 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.4742, allocations: 33.64 kB / 489.6 MB, free: 5.074 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.4743, allocations: 273.6 kB / 489.9 MB, free: 4.879 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.247e-05/0.4744, allocations: 138.8 kB / 490 MB, free: 4.762 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.971e-05/0.4744, allocations: 6.812 kB / 490 MB, free: 4.762 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.822e-05/0.4745, allocations: 369.8 kB / 490.4 MB, free: 4.414 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000242/0.4747, allocations: 179.9 kB / 490.5 MB, free: 4.289 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002788/0.475, allocations: 340.3 kB / 490.9 MB, free: 3.961 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003295/0.4754, allocations: 263.6 kB / 491.1 MB, free: 3.762 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.4754, allocations: 4 kB / 491.1 MB, free: 3.758 MB / 346.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009253/0.4763, allocations: 0.7522 MB / 491.9 MB, free: 3.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.88e-05/0.4764, allocations: 40.88 kB / 491.9 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.4764, allocations: 4 kB / 491.9 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.4764, allocations: 12 kB / 491.9 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004589/0.4769, allocations: 131.2 kB / 492.1 MB, free: 2.977 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.4769, allocations: 8 kB / 492.1 MB, free: 2.969 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.4771, allocations: 73.05 kB / 492.2 MB, free: 2.906 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.208e-05/0.4772, allocations: 26.06 kB / 492.2 MB, free: 2.887 MB / 346.7 MB Warning: Assuming fixed start value for the following 15 variables: processNoCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processNoCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] processNoCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessBias.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessBias.Y[3]:VARIABLE(fixed = true 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 () * Number of clocked 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.0003009/0.4775, allocations: 274.2 kB / 492.4 MB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.909e-05/0.4776, allocations: 55.3 kB / 492.5 MB, free: 2.582 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007887/0.4784, allocations: 0.5441 MB / 493 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.4784, allocations: 7.984 kB / 493.1 MB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.4784, allocations: 2.062 kB / 493.1 MB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.4784, allocations: 0 / 493.1 MB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003721/0.4788, allocations: 475.2 kB / 493.5 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.4788, allocations: 0 / 493.5 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000467/0.4793, allocations: 87.12 kB / 493.6 MB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.4793, allocations: 3.953 kB / 493.6 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.154e-05/0.4793, allocations: 19.73 kB / 493.6 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.4793, allocations: 0 / 493.6 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.4794, allocations: 4 kB / 493.6 MB, free: 1.625 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008594/0.4802, allocations: 0.754 MB / 494.4 MB, free: 1.023 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.12e-05/0.4803, allocations: 132.5 kB / 494.5 MB, free: 0.875 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.127e-05/0.4804, allocations: 19.27 kB / 494.5 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.4805, allocations: 19.8 kB / 494.6 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.282e-05/0.4806, allocations: 23.53 kB / 494.6 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.219e-05/0.4807, allocations: 16.8 kB / 494.6 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002523/0.4809, allocations: 327.3 kB / 494.9 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4809, allocations: 4 kB / 494.9 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004071/0.4813, allocations: 117.5 kB / 495 MB, free: 468 kB / 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) * Number of clocked states: 0 () * 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.001226/0.4826, allocations: 1.305 MB / 496.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007349/0.4833, allocations: 0.5463 MB / 496.9 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4833, allocations: 0 / 496.9 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003042/0.4836, allocations: 272 kB / 497.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.4839, allocations: 45.91 kB / 497.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005632/0.4895, allocations: 6.789 MB / 0.4922 GB, free: 7.535 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004175/0.49, allocations: 0.8993 MB / 0.493 GB, free: 6.613 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002893/0.4903, allocations: 112 kB / 0.4932 GB, free: 6.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002103/0.4905, allocations: 175.4 kB / 0.4933 GB, free: 6.328 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4905, allocations: 0 / 0.4933 GB, free: 6.328 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02182/0.5123, allocations: 8.614 MB / 0.5017 GB, free: 13.77 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001683/0.5125, allocations: 203 kB / 0.5019 GB, free: 13.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.123/2.635, allocations: 0 / 0.5019 GB, free: 13.52 MB / 378.7 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_bias_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.pipe 2>&1)