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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001991/0.001991, allocations: 194.8 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.475/1.475, allocations: 205.1 MB / 222.1 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0577/0.0577, allocations: 10.74 MB / 280.2 MB, free: 10.68 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002232/0.002232, allocations: 67.89 kB / 340.1 MB, free: 23.57 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1376, allocations: 49 MB / 389.1 MB, free: 6.508 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPI_bias): time 0.004442/0.1421, allocations: 2.173 MB / 391.3 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.1434, allocations: 0.5259 MB / 391.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002794/0.1437, allocations: 11.88 kB / 391.9 MB, free: 3.777 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002593/0.144, allocations: 35.66 kB / 391.9 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001522/0.1442, allocations: 23.8 kB / 391.9 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007932/0.145, allocations: 239.6 kB / 392.1 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005801/0.1456, allocations: 0.5115 MB / 392.7 MB, free: 2.969 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002164/0.1458, allocations: 76.94 kB / 392.7 MB, free: 2.895 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000211/0.146, allocations: 179.3 kB / 392.9 MB, free: 2.719 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002606/0.1463, allocations: 191.1 kB / 393.1 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.641e-05/0.1464, allocations: 32 kB / 393.1 MB, free: 2.5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.699e-05/0.1464, allocations: 28 kB / 393.2 MB, free: 2.473 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001539/0.1466, allocations: 123.6 kB / 393.3 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.1468, allocations: 174.8 kB / 393.4 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003868/0.1472, allocations: 362.7 kB / 393.8 MB, free: 1.824 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.1472, allocations: 0 / 393.8 MB, free: 1.824 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1472, allocations: 0 / 393.8 MB, free: 1.824 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.689e-06/0.1472, allocations: 0 / 393.8 MB, free: 1.824 MB / 286.1 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.00159/0.1488, allocations: 0.7211 MB / 394.5 MB, free: 1.047 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.989e-05/0.1489, allocations: 15.89 kB / 394.5 MB, free: 1.031 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000121/0.149, allocations: 70.72 kB / 394.6 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.1491, allocations: 48.36 kB / 394.7 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006269/0.1498, allocations: 367.7 kB / 395 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.156e-05/0.1498, allocations: 29.38 kB / 395 MB, free: 492 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.684e-05/0.1499, allocations: 32.38 kB / 395.1 MB, free: 460 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007511/0.1507, allocations: 424.5 kB / 395.5 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.533e-05/0.1507, allocations: 8.109 kB / 395.5 MB, free: 16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.72e-05/0.1508, allocations: 15.94 kB / 395.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.1508, allocations: 19.94 kB / 395.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005719/0.1514, allocations: 306.3 kB / 395.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002503/0.1539, allocations: 1.535 MB / 397.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007573/0.1546, allocations: 238.5 kB / 397.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002061/0.1549, allocations: 120.8 kB / 397.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.001e-05/0.1549, allocations: 7.984 kB / 397.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.155, allocations: 38.5 kB / 397.8 MB, free: 13.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.064e-06/0.155, allocations: 0 / 397.8 MB, free: 13.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=25): time 0.0007015/0.1557, allocations: 362 kB / 398.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.1557, allocations: 55.41 kB / 398.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000407/0.1561, allocations: 401.5 kB / 398.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.1562, allocations: 29.7 kB / 398.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001727/0.1564, allocations: 236 kB / 398.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.125e-05/0.1564, allocations: 102.6 kB / 398.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.1565, allocations: 77.59 kB / 399 MB, free: 12.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.1567, allocations: 350.8 kB / 399.3 MB, free: 12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.1569, allocations: 108.4 kB / 399.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002725/0.1572, allocations: 224.4 kB / 399.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001843/0.159, allocations: 0.6712 MB / 400.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.159, allocations: 4 kB / 400.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006631/0.1597, allocations: 452.5 kB / 400.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.1597, allocations: 7.938 kB / 400.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1597, allocations: 4 kB / 400.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.1598, allocations: 8 kB / 400.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003965/0.1602, allocations: 99.88 kB / 400.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.776e-05/0.1602, allocations: 11.94 kB / 400.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001819/0.1604, allocations: 55.8 kB / 401 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.628e-05/0.1604, allocations: 16 kB / 401 MB, free: 10.25 MB / 302.1 MB Warning: Assuming fixed start value for the following 9 variables: ProcessBias.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessBias.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] ProcessBias.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] ProcessCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002527/0.1607, allocations: 191.6 kB / 401.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.298e-05/0.1608, allocations: 43.45 kB / 401.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006194/0.1614, allocations: 337.8 kB / 401.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1614, allocations: 0 / 401.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.1614, allocations: 8 kB / 401.5 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.1614, allocations: 3.984 kB / 401.6 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005536/0.162, allocations: 393.2 kB / 401.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.162, allocations: 0 / 401.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005015/0.1625, allocations: 79.89 kB / 402 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.1625, allocations: 3.938 kB / 402 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.213e-05/0.1626, allocations: 11.98 kB / 402 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.1626, allocations: 4 kB / 402 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1626, allocations: 0 / 402 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007641/0.1633, allocations: 0.5275 MB / 402.6 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.1635, allocations: 120.5 kB / 402.7 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.939e-05/0.1635, allocations: 8 kB / 402.7 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.1637, allocations: 11.98 kB / 402.7 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.513e-05/0.1638, allocations: 23.97 kB / 402.7 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.1638, allocations: 4 kB / 402.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002683/0.1641, allocations: 279.1 kB / 403 MB, free: 8.129 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1641, allocations: 3.938 kB / 403 MB, free: 8.125 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003554/0.1644, allocations: 67.83 kB / 403.1 MB, free: 8.059 MB / 302.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001058/0.1655, allocations: 1.073 MB / 404.1 MB, free: 6.961 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005888/0.1661, allocations: 336.1 kB / 404.5 MB, free: 6.633 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1661, allocations: 0 / 404.5 MB, free: 6.633 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002304/0.1663, allocations: 132.8 kB / 404.6 MB, free: 6.504 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003605/0.1667, allocations: 37.55 kB / 404.6 MB, free: 6.469 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004695/0.1714, allocations: 3.897 MB / 408.5 MB, free: 2.398 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005098/0.1719, allocations: 0.8341 MB / 409.4 MB, free: 1.539 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002511/0.1722, allocations: 83.16 kB / 409.4 MB, free: 1.457 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000211/0.1724, allocations: 147.4 kB / 409.6 MB, free: 1.312 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1724, allocations: 4 kB / 409.6 MB, free: 1.309 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0193/0.1917, allocations: 6.325 MB / 415.9 MB, free: 11.07 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001825/0.192, allocations: 228.9 kB / 416.1 MB, free: 10.81 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.939/2.131, allocations: 0 / 416.1 MB, free: 10.81 MB / 318.1 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/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)