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: translateModel(IndustrialControlSystems.Controllers.Examples.TestPID_bias,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias") translateModel(IndustrialControlSystems.Controllers.Examples.TestPID_bias,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001062/0.001062, allocations: 190.6 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.485/1.485, allocations: 205.1 MB / 222.1 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0568/0.0568, allocations: 10.74 MB / 280.2 MB, free: 10.66 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.001292/0.001292, allocations: 67.91 kB / 340 MB, free: 23.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1091, allocations: 49.02 MB / 389 MB, free: 6.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPID_bias): time 0.003049/0.1122, allocations: 2.244 MB / 391.3 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001139/0.1133, allocations: 0.6706 MB / 392 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001554/0.1135, allocations: 15.88 kB / 392 MB, free: 3.664 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001966/0.1137, allocations: 47.64 kB / 392 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000181/0.1139, allocations: 27.73 kB / 392.1 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005525/0.1145, allocations: 295.5 kB / 392.3 MB, free: 3.301 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005179/0.115, allocations: 0.5858 MB / 392.9 MB, free: 2.711 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.1152, allocations: 84.98 kB / 393 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002961/0.1155, allocations: 223.2 kB / 393.2 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003042/0.1158, allocations: 215 kB / 393.4 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.227e-05/0.1159, allocations: 32 kB / 393.5 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.999e-05/0.116, allocations: 32 kB / 393.5 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.1162, allocations: 139.6 kB / 393.6 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000215/0.1164, allocations: 190.7 kB / 393.8 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000464/0.1169, allocations: 406.8 kB / 394.2 MB, free: 1.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1169, allocations: 0 / 394.2 MB, free: 1.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1169, allocations: 4 kB / 394.2 MB, free: 1.406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.1169, allocations: 0 / 394.2 MB, free: 1.406 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.00156/0.1185, allocations: 0.7827 MB / 395 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.1185, allocations: 15.89 kB / 395 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.1187, allocations: 52.28 kB / 395.1 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007331/0.1194, allocations: 401.9 kB / 395.5 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001511/0.1196, allocations: 88.89 kB / 395.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.936e-05/0.1197, allocations: 36.38 kB / 395.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008765/0.1206, allocations: 469.2 kB / 396 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.72e-05/0.1206, allocations: 7.938 kB / 396.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.457e-05/0.1207, allocations: 16 kB / 396.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.1207, allocations: 8 kB / 396.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008078/0.1215, allocations: 351.7 kB / 396.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003559/0.1251, allocations: 1.693 MB / 398.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/0.1263, allocations: 299.2 kB / 398.4 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003626/0.1267, allocations: 177.3 kB / 398.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.591e-05/0.1267, allocations: 4.281 kB / 398.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.1268, allocations: 42.78 kB / 398.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 3.196e-06/0.1268, allocations: 0 / 398.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.001124/0.1279, allocations: 447.8 kB / 399.1 MB, free: 12.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.895e-05/0.128, allocations: 59.34 kB / 399.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005627/0.1285, allocations: 429.8 kB / 399.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.585e-05/0.1286, allocations: 29.7 kB / 399.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002348/0.1288, allocations: 240 kB / 399.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.129, allocations: 130.2 kB / 399.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/0.1292, allocations: 86.12 kB / 400 MB, free: 11.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.1293, allocations: 358.8 kB / 400.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003656/0.1297, allocations: 128.9 kB / 400.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004682/0.1302, allocations: 246.8 kB / 400.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002938/0.1332, allocations: 0.8166 MB / 401.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.1332, allocations: 4 kB / 401.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001123/0.1343, allocations: 0.5005 MB / 402.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.1343, allocations: 7.938 kB / 402.1 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.1344, allocations: 4 kB / 402.1 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/0.1344, allocations: 8 kB / 402.1 MB, free: 9.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006648/0.1351, allocations: 123.8 kB / 402.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.369e-05/0.1351, allocations: 7.938 kB / 402.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003016/0.1354, allocations: 55.42 kB / 402.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.502e-05/0.1355, allocations: 20 kB / 402.3 MB, free: 8.977 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 (61): * Single equations (assignments): 61 * 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.0003579/0.1358, allocations: 207.7 kB / 402.5 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.136, allocations: 47.38 kB / 402.5 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009881/0.137, allocations: 409.5 kB / 402.9 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.137, allocations: 4 kB / 402.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.137, allocations: 0 / 402.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.137, allocations: 3.984 kB / 402.9 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008755/0.1379, allocations: 449.1 kB / 403.4 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1379, allocations: 4 kB / 403.4 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00075/0.1387, allocations: 95.88 kB / 403.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.095e-05/0.1387, allocations: 7.922 kB / 403.5 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.124e-05/0.1387, allocations: 8 kB / 403.5 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.772e-06/0.1387, allocations: 4 kB / 403.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.1388, allocations: 0 / 403.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.1399, allocations: 0.6213 MB / 404.1 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.1401, allocations: 124.4 kB / 404.2 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.016e-05/0.1401, allocations: 15.98 kB / 404.2 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002541/0.1404, allocations: 15.98 kB / 404.3 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.298e-05/0.1405, allocations: 19.97 kB / 404.3 MB, free: 6.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.792e-05/0.1405, allocations: 8 kB / 404.3 MB, free: 6.852 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004038/0.1409, allocations: 291.1 kB / 404.6 MB, free: 6.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1409, allocations: 4 kB / 404.6 MB, free: 6.566 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006671/0.1416, allocations: 79.75 kB / 404.7 MB, free: 6.488 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 (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.0002169/0.1419, allocations: 115.8 kB / 404.8 MB, free: 6.367 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.1429, allocations: 404.1 kB / 405.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1429, allocations: 4 kB / 405.2 MB, free: 5.969 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004313/0.1434, allocations: 175.5 kB / 405.3 MB, free: 5.797 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005052/0.1439, allocations: 49.42 kB / 405.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.1461, allocations: 1.088 MB / 406.5 MB, free: 4.629 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006967/0.1468, allocations: 0.8586 MB / 407.3 MB, free: 3.746 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003825/0.1472, allocations: 83.36 kB / 407.4 MB, free: 3.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.1474, allocations: 39.44 kB / 407.5 MB, free: 3.621 MB / 302.1 MB Notification: Performance of SimCode: time 1.212e-06/0.1474, allocations: 0 / 407.5 MB, free: 3.621 MB / 302.1 MB Notification: Performance of Templates: time 0.00928/0.1567, allocations: 2.799 MB / 410.3 MB, free: 0.8203 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.makefile (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 & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe 2>&1)