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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, 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.001095/0.001095, allocations: 193.2 kB / 16.25 MB, free: 6.625 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.544/1.544, 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.05709/0.05709, allocations: 10.75 MB / 280.2 MB, free: 10.67 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.001444/0.001444, allocations: 63.89 kB / 340.1 MB, free: 23.58 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1085, allocations: 49.01 MB / 389.2 MB, free: 6.508 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_bias): time 0.003748/0.1123, allocations: 2.236 MB / 391.4 MB, free: 4.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001953/0.1143, allocations: 1.01 MB / 392.4 MB, free: 3.234 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001562/0.1145, allocations: 11.88 kB / 392.4 MB, free: 3.223 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003036/0.1148, allocations: 79.59 kB / 392.5 MB, free: 3.145 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.115, allocations: 55.69 kB / 392.5 MB, free: 3.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008681/0.1159, allocations: 287.5 kB / 392.8 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006173/0.1165, allocations: 0.5864 MB / 393.4 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002158/0.1167, allocations: 97.27 kB / 393.5 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002743/0.117, allocations: 219.2 kB / 393.7 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002929/0.1173, allocations: 243 kB / 394 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.215e-05/0.1174, allocations: 36 kB / 394 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001556/0.1175, allocations: 111.9 kB / 394.1 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.1177, allocations: 155.5 kB / 394.3 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001953/0.1179, allocations: 214.6 kB / 394.5 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005122/0.1184, allocations: 0.4905 MB / 395 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.1184, allocations: 3.938 kB / 395 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1184, allocations: 0 / 395 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.1184, allocations: 4 kB / 395 MB, free: 0.6562 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001349/0.1198, allocations: 0.8512 MB / 395.8 MB, free: 15.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.404e-05/0.1199, allocations: 11.89 kB / 395.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.732e-05/0.12, allocations: 82.7 kB / 395.9 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.1201, allocations: 64.19 kB / 396 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005619/0.1207, allocations: 417.8 kB / 396.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.383e-05/0.1207, allocations: 29.38 kB / 396.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-05/0.1208, allocations: 44.28 kB / 396.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008053/0.1216, allocations: 0.5085 MB / 397 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.974e-05/0.1216, allocations: 11.84 kB / 397 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.591e-05/0.1217, allocations: 20 kB / 397 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.1217, allocations: 12 kB / 397 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00064/0.1224, allocations: 391.7 kB / 397.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002699/0.1251, allocations: 1.798 MB / 399.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004758/0.1256, allocations: 266.4 kB / 399.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002506/0.1258, allocations: 176.8 kB / 399.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.294e-05/0.1259, allocations: 7.984 kB / 399.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003714/0.1262, allocations: 252.9 kB / 399.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 1.754e-06/0.1263, allocations: 4 kB / 399.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=36): time 0.0009409/0.1272, allocations: 0.5821 MB / 400.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.1273, allocations: 89.09 kB / 400.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004667/0.1277, allocations: 497.8 kB / 401 MB, free: 10.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.014e-05/0.1278, allocations: 29.7 kB / 401.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001906/0.128, allocations: 276 kB / 401.3 MB, free: 10 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.1281, allocations: 138 kB / 401.5 MB, free: 9.863 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.1282, allocations: 98.25 kB / 401.6 MB, free: 9.762 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.1284, allocations: 378.7 kB / 401.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002577/0.1287, allocations: 161.1 kB / 402.1 MB, free: 9.227 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003612/0.129, allocations: 333.8 kB / 402.4 MB, free: 8.832 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002028/0.1311, allocations: 1.078 MB / 403.5 MB, free: 7.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.1311, allocations: 4 kB / 403.5 MB, free: 7.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001009/0.1321, allocations: 0.7188 MB / 404.2 MB, free: 6.926 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.093e-05/0.1322, allocations: 45.72 kB / 404.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.1322, allocations: 11.97 kB / 404.3 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.1322, allocations: 8 kB / 404.3 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004601/0.1327, allocations: 131.8 kB / 404.4 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.906e-05/0.1327, allocations: 11.98 kB / 404.4 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002392/0.1329, allocations: 67.36 kB / 404.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.972e-05/0.133, allocations: 24 kB / 404.5 MB, free: 6.625 MB / 302.1 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.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] 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] ProcessBias.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.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 (Disturbance.nextEventScaled,Disturbance.nextEvent,$PRE.Disturbance.nextEvent,Disturbance.last,Disturbance.b,Disturbance.a,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003852/0.1334, allocations: 278.6 kB / 404.8 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.811e-05/0.1335, allocations: 47.44 kB / 404.8 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008899/0.1344, allocations: 0.5254 MB / 405.3 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.1344, allocations: 4 kB / 405.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1344, allocations: 0 / 405.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.1344, allocations: 0 / 405.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004621/0.1349, allocations: 484.7 kB / 405.8 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1349, allocations: 0 / 405.8 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004675/0.1353, allocations: 91.88 kB / 405.9 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.1354, allocations: 0 / 405.9 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.882e-05/0.1354, allocations: 12 kB / 405.9 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.1354, allocations: 4 kB / 405.9 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.1354, allocations: 7.969 kB / 405.9 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000956/0.1364, allocations: 0.7079 MB / 406.6 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.036e-05/0.1365, allocations: 128.5 kB / 406.8 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.423e-05/0.1365, allocations: 20 kB / 406.8 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.1367, allocations: 15.98 kB / 406.8 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.109e-05/0.1368, allocations: 23.97 kB / 406.8 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.185e-05/0.1368, allocations: 11.98 kB / 406.8 MB, free: 4.168 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000314/0.1371, allocations: 342.8 kB / 407.2 MB, free: 3.832 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1372, allocations: 0 / 407.2 MB, free: 3.832 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000372/0.1375, allocations: 107.8 kB / 407.3 MB, free: 3.727 MB / 302.1 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 (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.001304/0.1388, allocations: 1.312 MB / 408.6 MB, free: 2.375 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008524/0.1397, allocations: 0.5949 MB / 409.2 MB, free: 1.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.1397, allocations: 4 kB / 409.2 MB, free: 1.766 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003142/0.14, allocations: 275.2 kB / 409.5 MB, free: 1.484 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.1404, allocations: 54.41 kB / 409.5 MB, free: 1.434 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00562/0.146, allocations: 5.138 MB / 414.7 MB, free: 12.06 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004453/0.1465, allocations: 0.8859 MB / 415.5 MB, free: 11.15 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002709/0.1467, allocations: 108.1 kB / 415.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000227/0.147, allocations: 179.4 kB / 415.8 MB, free: 10.87 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.147, allocations: 0 / 415.8 MB, free: 10.87 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02166/0.1687, allocations: 8.778 MB / 424.6 MB, free: 2.18 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002119/0.1689, allocations: 228.7 kB / 424.8 MB, free: 1.918 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.963/2.132, allocations: 4 kB / 424.8 MB, free: 1.914 MB / 318.1 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/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)