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.001007/0.001007, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05823/0.05823, allocations: 10.65 MB / 23.92 MB, free: 1.379 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.61/1.61, allocations: 205.2 MB / 232.1 MB, free: 12.82 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008441/0.000844, allocations: 97 kB / 282.6 MB, free: 13.59 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 4.56e-05/4.571e-05, allocations: 4 kB / 340.6 MB, free: 3.539 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3799/0.3799, allocations: 49.98 MB / 390.6 MB, free: 35.73 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1308/0.5108, allocations: 79.6 MB / 470.2 MB, free: 4.02 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/0.5111, allocations: 67.97 kB / 470.2 MB, free: 3.953 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02161/0.5327, allocations: 7.294 MB / 477.5 MB, free: 12.63 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.755e-06/0.5328, allocations: 0 / 477.5 MB, free: 12.63 MB / 362.8 MB Notification: Performance of Transformations before backend: time 3.485e-05/0.5328, allocations: 28.03 kB / 477.5 MB, free: 12.6 MB / 362.8 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.001146/0.534, allocations: 0.7301 MB / 478.3 MB, free: 11.82 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.534, allocations: 12.03 kB / 478.3 MB, free: 11.81 MB / 362.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.722e-05/0.5341, allocations: 78.53 kB / 478.4 MB, free: 11.72 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.5342, allocations: 63.19 kB / 478.4 MB, free: 11.66 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007541/0.535, allocations: 435.9 kB / 478.9 MB, free: 11.19 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.424e-05/0.535, allocations: 28.78 kB / 478.9 MB, free: 11.16 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.982e-05/0.5351, allocations: 51.89 kB / 478.9 MB, free: 11.11 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007849/0.5359, allocations: 0.5131 MB / 479.4 MB, free: 10.57 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.592e-05/0.5359, allocations: 15.86 kB / 479.5 MB, free: 10.55 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.999e-05/0.536, allocations: 16 kB / 479.5 MB, free: 10.54 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.536, allocations: 8 kB / 479.5 MB, free: 10.53 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006035/0.5366, allocations: 390.9 kB / 479.9 MB, free: 10.14 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002741/0.5394, allocations: 1.814 MB / 481.7 MB, free: 8.25 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004649/0.5399, allocations: 263.4 kB / 481.9 MB, free: 7.984 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002475/0.5401, allocations: 184.6 kB / 482.1 MB, free: 7.801 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.72e-05/0.5401, allocations: 4.266 kB / 482.1 MB, free: 7.797 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003596/0.5405, allocations: 268.9 kB / 482.4 MB, free: 7.516 MB / 362.8 MB Notification: Performance of pre-optimization done (n=36): time 2.034e-06/0.5405, allocations: 0 / 482.4 MB, free: 7.516 MB / 362.8 MB Notification: Performance of matching and sorting (n=36): time 0.000736/0.5413, allocations: 456.9 kB / 482.8 MB, free: 7.051 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.5413, allocations: 85.11 kB / 482.9 MB, free: 6.949 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004516/0.5418, allocations: 434.9 kB / 483.3 MB, free: 6.52 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.188e-05/0.5418, allocations: 33.7 kB / 483.4 MB, free: 6.48 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001913/0.542, allocations: 276 kB / 483.6 MB, free: 6.203 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.5421, allocations: 134.2 kB / 483.8 MB, free: 6.07 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.107e-05/0.5422, allocations: 8 kB / 483.8 MB, free: 6.062 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.5424, allocations: 366.8 kB / 484.1 MB, free: 5.695 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000248/0.5426, allocations: 161.3 kB / 484.3 MB, free: 5.539 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003699/0.543, allocations: 341.2 kB / 484.6 MB, free: 5.145 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003697/0.5434, allocations: 246.9 kB / 484.9 MB, free: 4.891 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.5434, allocations: 7.953 kB / 484.9 MB, free: 4.883 MB / 362.8 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001024/0.5444, allocations: 0.7304 MB / 485.6 MB, free: 4.141 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.431e-05/0.5445, allocations: 38.31 kB / 485.6 MB, free: 4.098 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.5445, allocations: 4 kB / 485.7 MB, free: 4.094 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.296e-05/0.5445, allocations: 12 kB / 485.7 MB, free: 4.082 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004806/0.545, allocations: 131.8 kB / 485.8 MB, free: 3.953 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.805e-05/0.545, allocations: 11.98 kB / 485.8 MB, free: 3.941 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002377/0.5453, allocations: 67.45 kB / 485.9 MB, free: 3.875 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.109e-05/0.5453, allocations: 24 kB / 485.9 MB, free: 3.852 MB / 362.8 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.0002281/0.5456, allocations: 195.5 kB / 486.1 MB, free: 3.652 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.59e-05/0.5456, allocations: 55.3 kB / 486.1 MB, free: 3.598 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008436/0.5465, allocations: 0.5303 MB / 486.7 MB, free: 3.055 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.5465, allocations: 4 kB / 486.7 MB, free: 3.051 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.5465, allocations: 0 / 486.7 MB, free: 3.051 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.5465, allocations: 7.922 kB / 486.7 MB, free: 3.043 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000509/0.5471, allocations: 473.1 kB / 487.1 MB, free: 2.531 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.5471, allocations: 0 / 487.1 MB, free: 2.531 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005098/0.5476, allocations: 91.83 kB / 487.2 MB, free: 2.441 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.5476, allocations: 0 / 487.2 MB, free: 2.441 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.588e-05/0.5476, allocations: 23.98 kB / 487.3 MB, free: 2.418 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.5477, allocations: 4 kB / 487.3 MB, free: 2.414 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.5477, allocations: 0 / 487.3 MB, free: 2.414 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.5487, allocations: 0.7216 MB / 488 MB, free: 1.668 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.5489, allocations: 128.5 kB / 488.1 MB, free: 1.523 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.041e-05/0.5489, allocations: 19.95 kB / 488.1 MB, free: 1.504 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.5491, allocations: 23.92 kB / 488.1 MB, free: 1.48 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.373e-05/0.5492, allocations: 23.95 kB / 488.2 MB, free: 1.457 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.774e-05/0.5492, allocations: 20 kB / 488.2 MB, free: 1.438 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0003585/0.5496, allocations: 325.2 kB / 488.5 MB, free: 1.121 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5496, allocations: 4 kB / 488.5 MB, free: 1.117 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.000428/0.55, allocations: 111.8 kB / 488.6 MB, free: 1.008 MB / 362.8 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.001449/0.5515, allocations: 1.27 MB / 489.9 MB, free: 15.7 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0007358/0.5522, allocations: 0.5233 MB / 490.4 MB, free: 15.17 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.5523, allocations: 0 / 490.4 MB, free: 15.17 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002992/0.5526, allocations: 265.7 kB / 490.7 MB, free: 14.9 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000269/0.5528, allocations: 45.97 kB / 490.7 MB, free: 14.86 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.5545, allocations: 1.091 MB / 491.8 MB, free: 13.73 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004887/0.555, allocations: 0.8937 MB / 492.7 MB, free: 12.8 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0002743/0.5553, allocations: 108.1 kB / 492.8 MB, free: 12.7 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002453/0.5555, allocations: 179.4 kB / 493 MB, free: 12.52 MB / 378.8 MB Notification: Performance of SimCode: time 3.11e-07/0.5555, allocations: 0 / 493 MB, free: 12.52 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02249/0.578, allocations: 8.458 MB / 0.4897 GB, free: 4.156 MB / 378.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002061/0.5783, allocations: 189.8 kB / 0.4899 GB, free: 3.914 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.241/2.82, allocations: 0 / 0.4899 GB, free: 3.914 MB / 378.8 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)