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.001382/0.001382, allocations: 174.1 kB / 12.73 MB, free: 2.586 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06037/0.06037, 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.831/1.831, allocations: 205.2 MB / 232.1 MB, free: 12.81 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.000921/0.000921, allocations: 94.02 kB / 282.6 MB, free: 13.57 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 4.808e-05/4.848e-05, allocations: 4 kB / 340.6 MB, free: 3.508 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2841, allocations: 49.98 MB / 390.6 MB, free: 35.7 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1004/0.3846, allocations: 79.6 MB / 470.2 MB, free: 3.992 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.3849, allocations: 75.97 kB / 470.2 MB, free: 3.918 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02131/0.4062, allocations: 7.335 MB / 477.6 MB, free: 12.55 MB / 362.8 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4062, allocations: 0 / 477.6 MB, free: 12.55 MB / 362.8 MB Notification: Performance of Transformations before backend: time 3.36e-05/0.4063, allocations: 20.16 kB / 477.6 MB, free: 12.53 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.001196/0.4075, allocations: 0.7418 MB / 478.3 MB, free: 11.74 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.4075, allocations: 12.03 kB / 478.4 MB, free: 11.73 MB / 362.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.114e-05/0.4076, allocations: 82.47 kB / 478.4 MB, free: 11.64 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.4077, allocations: 63.25 kB / 478.5 MB, free: 11.57 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007894/0.4085, allocations: 447.9 kB / 478.9 MB, free: 11.09 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.053e-05/0.4086, allocations: 28.78 kB / 479 MB, free: 11.07 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-05/0.4087, allocations: 40 kB / 479 MB, free: 11.03 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008112/0.4095, allocations: 0.5209 MB / 479.5 MB, free: 10.48 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.237e-05/0.4095, allocations: 15.86 kB / 479.5 MB, free: 10.46 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.397e-05/0.4096, allocations: 16 kB / 479.6 MB, free: 10.45 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.4096, allocations: 8 kB / 479.6 MB, free: 10.44 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006236/0.4102, allocations: 374.9 kB / 479.9 MB, free: 10.07 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002897/0.4132, allocations: 1.831 MB / 481.8 MB, free: 8.156 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004862/0.4137, allocations: 265.1 kB / 482 MB, free: 7.891 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002645/0.4139, allocations: 188.6 kB / 482.2 MB, free: 7.703 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.392e-05/0.414, allocations: 7.984 kB / 482.2 MB, free: 7.695 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003701/0.4144, allocations: 260.9 kB / 482.5 MB, free: 7.422 MB / 362.8 MB Notification: Performance of pre-optimization done (n=36): time 2.395e-06/0.4144, allocations: 0 / 482.5 MB, free: 7.422 MB / 362.8 MB Notification: Performance of matching and sorting (n=36): time 0.0007843/0.4152, allocations: 464.8 kB / 482.9 MB, free: 6.949 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.464e-05/0.4152, allocations: 81.11 kB / 483 MB, free: 6.852 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004837/0.4157, allocations: 435.8 kB / 483.4 MB, free: 6.422 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.302e-05/0.4158, allocations: 29.7 kB / 483.4 MB, free: 6.387 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002214/0.416, allocations: 284 kB / 483.7 MB, free: 6.102 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.4161, allocations: 138 kB / 483.9 MB, free: 5.965 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.44e-05/0.4162, allocations: 12 kB / 483.9 MB, free: 5.953 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.4163, allocations: 370.8 kB / 484.2 MB, free: 5.582 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002539/0.4166, allocations: 165.2 kB / 484.4 MB, free: 5.422 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003773/0.417, allocations: 325.2 kB / 484.7 MB, free: 5.043 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003691/0.4174, allocations: 251.2 kB / 485 MB, free: 4.785 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.4174, allocations: 3.953 kB / 485 MB, free: 4.781 MB / 362.8 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001116/0.4185, allocations: 0.7299 MB / 485.7 MB, free: 4.039 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.608e-05/0.4186, allocations: 41.7 kB / 485.7 MB, free: 3.992 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.4186, allocations: 4 kB / 485.7 MB, free: 3.988 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.507e-05/0.4186, allocations: 8.656 kB / 485.7 MB, free: 3.98 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005353/0.4192, allocations: 139.8 kB / 485.9 MB, free: 3.844 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.489e-05/0.4192, allocations: 8 kB / 485.9 MB, free: 3.836 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002518/0.4194, allocations: 59.42 kB / 485.9 MB, free: 3.777 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.493e-05/0.4195, allocations: 28 kB / 486 MB, free: 3.75 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.000272/0.4198, allocations: 199.6 kB / 486.2 MB, free: 3.547 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.004e-05/0.4199, allocations: 51.39 kB / 486.2 MB, free: 3.496 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009351/0.4208, allocations: 0.5303 MB / 486.8 MB, free: 2.961 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.327e-06/0.4208, allocations: 7.984 kB / 486.8 MB, free: 2.953 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.4209, allocations: 0 / 486.8 MB, free: 2.953 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.4209, allocations: 3.938 kB / 486.8 MB, free: 2.949 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005768/0.4215, allocations: 477 kB / 487.2 MB, free: 2.434 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.4215, allocations: 4 kB / 487.2 MB, free: 2.43 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004731/0.4219, allocations: 91.83 kB / 487.3 MB, free: 2.34 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.422, allocations: 0 / 487.3 MB, free: 2.34 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.627e-05/0.422, allocations: 19.98 kB / 487.3 MB, free: 2.32 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.422, allocations: 4 kB / 487.3 MB, free: 2.316 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.422, allocations: 0 / 487.3 MB, free: 2.316 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.4231, allocations: 0.7254 MB / 488.1 MB, free: 1.566 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.4232, allocations: 128.5 kB / 488.2 MB, free: 1.422 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.358e-05/0.4233, allocations: 23.94 kB / 488.2 MB, free: 1.398 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.4235, allocations: 19.98 kB / 488.2 MB, free: 1.379 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.927e-05/0.4236, allocations: 19.97 kB / 488.3 MB, free: 1.359 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.872e-05/0.4236, allocations: 16 kB / 488.3 MB, free: 1.344 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0003892/0.424, allocations: 333.5 kB / 488.6 MB, free: 1.016 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.5e-07/0.424, allocations: 0 / 488.6 MB, free: 1.016 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0004667/0.4245, allocations: 107.8 kB / 488.7 MB, free: 0.9102 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.001415/0.4259, allocations: 1.273 MB / 490 MB, free: 15.6 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0007837/0.4267, allocations: 0.5244 MB / 490.5 MB, free: 15.07 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4267, allocations: 288 / 490.5 MB, free: 15.07 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002995/0.427, allocations: 268.1 kB / 490.8 MB, free: 14.79 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/0.4273, allocations: 45.97 kB / 490.8 MB, free: 14.75 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001732/0.4291, allocations: 1.096 MB / 491.9 MB, free: 13.61 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005036/0.4296, allocations: 0.9053 MB / 492.8 MB, free: 12.68 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0002721/0.4299, allocations: 108.1 kB / 492.9 MB, free: 12.57 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002446/0.4301, allocations: 183.4 kB / 493.1 MB, free: 12.39 MB / 378.8 MB Notification: Performance of SimCode: time 6.01e-07/0.4301, allocations: 0 / 493.1 MB, free: 12.39 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02258/0.4527, allocations: 8.513 MB / 0.4899 GB, free: 3.973 MB / 378.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001817/0.4529, allocations: 186.9 kB / 0.49 GB, free: 3.734 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.24/2.693, allocations: 0 / 0.49 GB, free: 3.734 MB / 378.8 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)