Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_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.TestPID_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPID_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPID_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPID_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.001091/0.001091, allocations: 98.45 kB / 15.05 MB, free: 1.105 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.001216/0.001216, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.742/1.742, allocations: 205.4 MB / 222.1 MB, free: 5.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05461/0.05461, allocations: 10.74 MB / 281.1 MB, free: 10.45 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.0004931/0.0004931, allocations: 12 kB / 341.7 MB, free: 23.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1114, allocations: 50.02 MB / 391.7 MB, free: 5.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPID_bias): time 0.00289/0.1144, allocations: 1.813 MB / 393.5 MB, free: 3.871 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.1157, allocations: 0.6515 MB / 394.2 MB, free: 3.219 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001652/0.1158, allocations: 23.81 kB / 394.2 MB, free: 3.195 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001818/0.116, allocations: 31.7 kB / 394.2 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002028/0.1162, allocations: 43.83 kB / 394.3 MB, free: 3.121 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005359/0.1168, allocations: 251.5 kB / 394.5 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004506/0.1172, allocations: 332.3 kB / 394.8 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001975/0.1175, allocations: 72.98 kB / 394.9 MB, free: 2.473 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002588/0.1177, allocations: 191.2 kB / 395.1 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.118, allocations: 175.2 kB / 395.3 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.558e-05/0.118, allocations: 19.98 kB / 395.3 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.098e-05/0.1181, allocations: 12 kB / 395.3 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.1182, allocations: 111.6 kB / 395.4 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.26e-05/0.1183, allocations: 93.33 kB / 395.5 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00029/0.1186, allocations: 283.7 kB / 395.8 MB, free: 1.598 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1186, allocations: 0 / 395.8 MB, free: 1.598 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1186, allocations: 0 / 395.8 MB, free: 1.598 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1186, allocations: 0 / 395.8 MB, free: 1.598 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001233/0.1199, allocations: 0.7055 MB / 396.5 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.1199, allocations: 12.03 kB / 396.5 MB, free: 0.832 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.331e-05/0.12, allocations: 74.53 kB / 396.6 MB, free: 0.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.608e-05/0.1201, allocations: 63.28 kB / 396.6 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005645/0.1207, allocations: 388.8 kB / 397 MB, free: 272 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.091e-05/0.1208, allocations: 84.34 kB / 397.1 MB, free: 176 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.75e-05/0.1209, allocations: 51.89 kB / 397.1 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007423/0.1216, allocations: 456.7 kB / 397.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.1217, allocations: 4 kB / 397.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.742e-05/0.1217, allocations: 12 kB / 397.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.1217, allocations: 12 kB / 397.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006132/0.1224, allocations: 371.6 kB / 398 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002611/0.125, allocations: 1.705 MB / 399.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008755/0.1259, allocations: 299.2 kB / 400 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.968e-05/0.1259, allocations: 4.281 kB / 400 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.126, allocations: 38.83 kB / 400 MB, free: 13.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.472e-06/0.126, allocations: 0 / 400 MB, free: 13.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.0008219/0.1268, allocations: 456.5 kB / 400.5 MB, free: 12.67 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.994e-05/0.1268, allocations: 63.3 kB / 400.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004289/0.1273, allocations: 421.8 kB / 400.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.1273, allocations: 37.64 kB / 401 MB, free: 12.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001832/0.1275, allocations: 247.9 kB / 401.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.1276, allocations: 126.2 kB / 401.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.717e-05/0.1276, allocations: 8 kB / 401.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1278, allocations: 358.8 kB / 401.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000239/0.128, allocations: 132.9 kB / 401.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003068/0.1284, allocations: 246.8 kB / 402.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003022/0.1287, allocations: 185.6 kB / 402.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.1287, allocations: 4 kB / 402.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007675/0.1295, allocations: 0.5142 MB / 402.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.1295, allocations: 19.12 kB / 402.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.1295, allocations: 0 / 402.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.1295, allocations: 8 kB / 402.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000502/0.13, allocations: 119.9 kB / 402.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/0.1301, allocations: 11.94 kB / 402.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001977/0.1303, allocations: 59.47 kB / 403 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.106e-05/0.1303, allocations: 19.98 kB / 403 MB, free: 10.05 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] ProcessCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processNoCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real 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 (61): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * 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.0002615/0.1306, allocations: 203.5 kB / 403.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.273e-05/0.1306, allocations: 47.42 kB / 403.2 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007145/0.1314, allocations: 413.5 kB / 403.6 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.1314, allocations: 12 kB / 403.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1314, allocations: 0 / 403.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.994e-06/0.1314, allocations: 3.953 kB / 403.7 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004928/0.1319, allocations: 445.1 kB / 404.1 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1319, allocations: 4 kB / 404.1 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005406/0.1325, allocations: 91.88 kB / 404.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.1325, allocations: 4 kB / 404.2 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.129e-05/0.1325, allocations: 15.98 kB / 404.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1325, allocations: 0 / 404.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1325, allocations: 4 kB / 404.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008597/0.1334, allocations: 0.6248 MB / 404.8 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.944e-05/0.1335, allocations: 124.5 kB / 405 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.185e-05/0.1336, allocations: 11.98 kB / 405 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/0.1338, allocations: 23.92 kB / 405 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.577e-05/0.1338, allocations: 23.95 kB / 405 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.1339, allocations: 12 kB / 405 MB, free: 7.902 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002791/0.1341, allocations: 287.1 kB / 405.3 MB, free: 7.625 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1341, allocations: 0 / 405.3 MB, free: 7.625 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003449/0.1345, allocations: 79.75 kB / 405.4 MB, free: 7.547 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (R.Iaction,R.Fder,R_Bias.Iaction,R_Bias.Fder,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 (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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.001127/0.1356, allocations: 1.186 MB / 406.6 MB, free: 6.336 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006015/0.1362, allocations: 372.3 kB / 406.9 MB, free: 5.973 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1363, allocations: 0 / 406.9 MB, free: 5.973 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002603/0.1365, allocations: 171.8 kB / 407.1 MB, free: 5.805 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002672/0.1368, allocations: 41.48 kB / 407.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004445/0.1413, allocations: 5.108 MB / 412.2 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004502/0.1417, allocations: 0.8625 MB / 413.1 MB, free: 15.64 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002505/0.142, allocations: 91.3 kB / 413.2 MB, free: 15.55 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002268/0.1422, allocations: 171.4 kB / 413.4 MB, free: 15.38 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1422, allocations: 3.938 kB / 413.4 MB, free: 15.38 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01976/0.162, allocations: 7.03 MB / 420.4 MB, free: 8.445 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002778/0.1623, allocations: 204.1 kB / 420.6 MB, free: 8.203 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/1.97, allocations: 0 / 420.6 MB, free: 8.203 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPID_bias_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPID_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe 2>&1) Environment - environmentSimulation: