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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 218.7 kB / 22.26 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.529/1.529, allocations: 230.6 MB / 256 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.07298/0.07298, allocations: 11.34 MB / 323.8 MB, free: 8.211 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002121/0.002121, allocations: 67.91 kB / 451 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1288, allocations: 56.06 MB / 0.4952 GB, free: 2.324 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPID_bias): time 0.005203/0.134, allocations: 2.302 MB / 0.4975 GB, free: 8 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002152/0.1361, allocations: 0.722 MB / 0.4982 GB, free: 15.28 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002482/0.1364, allocations: 23.75 kB / 0.4982 GB, free: 15.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000274/0.1367, allocations: 67.27 kB / 0.4983 GB, free: 15.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002679/0.1369, allocations: 47.55 kB / 0.4983 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001186/0.1381, allocations: 379.2 kB / 0.4987 GB, free: 14.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001268/0.1394, allocations: 0.653 MB / 0.4993 GB, free: 14.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002443/0.1396, allocations: 77.41 kB / 0.4994 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004483/0.1401, allocations: 231.2 kB / 0.4996 GB, free: 13.81 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004529/0.1405, allocations: 222.9 kB / 0.4998 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.895e-05/0.1406, allocations: 32 kB / 0.4998 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.194e-05/0.1407, allocations: 36 kB / 0.4999 GB, free: 13.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002314/0.1409, allocations: 151.5 kB / 0.5 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002711/0.1412, allocations: 202.6 kB / 0.5002 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000692/0.1419, allocations: 441.9 kB / 0.5006 GB, free: 12.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1419, allocations: 0 / 0.5006 GB, free: 12.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1419, allocations: 0 / 0.5006 GB, free: 12.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.1419, allocations: 0 / 0.5006 GB, free: 12.75 MB / 382.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.002006/0.1439, allocations: 0.7487 MB / 0.5014 GB, free: 11.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.144, allocations: 12.03 kB / 0.5014 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001222/0.1441, allocations: 78.72 kB / 0.5015 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001447/0.1442, allocations: 60.56 kB / 0.5015 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009435/0.1452, allocations: 386.8 kB / 0.5019 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/0.1453, allocations: 80.97 kB / 0.502 GB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.1454, allocations: 48.33 kB / 0.502 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.1466, allocations: 0.5003 MB / 0.5025 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.977e-05/0.1466, allocations: 0 / 0.5025 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.639e-05/0.1467, allocations: 16 kB / 0.5025 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.028e-05/0.1467, allocations: 12 kB / 0.5025 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001105/0.1478, allocations: 375.6 kB / 0.5029 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004668/0.1525, allocations: 2.025 MB / 0.5049 GB, free: 8.223 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.1537, allocations: 283.2 kB / 0.5051 GB, free: 7.938 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004206/0.1542, allocations: 165.3 kB / 0.5053 GB, free: 7.773 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.426e-05/0.1542, allocations: 8.281 kB / 0.5053 GB, free: 7.766 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.1542, allocations: 30.84 kB / 0.5053 GB, free: 7.727 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 3.677e-06/0.1543, allocations: 3.938 kB / 0.5053 GB, free: 7.723 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.001313/0.1556, allocations: 454.7 kB / 0.5058 GB, free: 7.273 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.033e-05/0.1556, allocations: 55.41 kB / 0.5058 GB, free: 7.207 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000738/0.1564, allocations: 445.8 kB / 0.5062 GB, free: 6.766 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.699e-05/0.1564, allocations: 41.7 kB / 0.5063 GB, free: 6.719 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002775/0.1567, allocations: 268.2 kB / 0.5065 GB, free: 6.449 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00015/0.1568, allocations: 130.9 kB / 0.5067 GB, free: 6.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/0.157, allocations: 94.14 kB / 0.5067 GB, free: 6.223 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002371/0.1573, allocations: 370.7 kB / 0.5071 GB, free: 5.852 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003837/0.1576, allocations: 133.1 kB / 0.5072 GB, free: 5.723 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006075/0.1583, allocations: 283 kB / 0.5075 GB, free: 5.387 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003385/0.1616, allocations: 0.8241 MB / 0.5083 GB, free: 4.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.1616, allocations: 0 / 0.5083 GB, free: 4.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001424/0.1631, allocations: 0.5441 MB / 0.5088 GB, free: 3.949 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.229e-05/0.1631, allocations: 12.12 kB / 0.5088 GB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.1631, allocations: 4 kB / 0.5088 GB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.21e-05/0.1631, allocations: 11.98 kB / 0.5089 GB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000741/0.1639, allocations: 123.8 kB / 0.509 GB, free: 3.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.751e-05/0.1639, allocations: 11.94 kB / 0.509 GB, free: 3.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000379/0.1643, allocations: 55.61 kB / 0.509 GB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.971e-05/0.1643, allocations: 23.98 kB / 0.5091 GB, free: 3.711 MB / 382.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: 20 * Number of states: 0 () * Number of discrete variables: 8 (R_Bias.TS_in,R.TS_in,R_Bias.satLOW_in,R_Bias.satHIGH_in,R_Bias.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0004594/0.1648, allocations: 215.4 kB / 0.5093 GB, free: 3.492 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.1649, allocations: 51.67 kB / 0.5093 GB, free: 3.441 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001148/0.1661, allocations: 401.9 kB / 0.5097 GB, free: 3.039 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.1661, allocations: 7.984 kB / 0.5097 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.1661, allocations: 0 / 0.5097 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.1661, allocations: 0 / 0.5097 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000826/0.1669, allocations: 436.2 kB / 0.5101 GB, free: 2.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1669, allocations: 0 / 0.5101 GB, free: 2.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007879/0.1677, allocations: 103.9 kB / 0.5102 GB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.1677, allocations: 4 kB / 0.5102 GB, free: 2.457 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.098e-05/0.1678, allocations: 8 kB / 0.5102 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.1678, allocations: 0 / 0.5102 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1678, allocations: 3.938 kB / 0.5102 GB, free: 2.445 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001386/0.1692, allocations: 0.6368 MB / 0.5109 GB, free: 1.793 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/0.1693, allocations: 55.62 kB / 0.5109 GB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.327e-05/0.1693, allocations: 8 kB / 0.5109 GB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002684/0.1696, allocations: 15.98 kB / 0.5109 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.27e-05/0.1697, allocations: 23.95 kB / 0.511 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-05/0.1697, allocations: 12 kB / 0.511 GB, free: 1.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005054/0.1702, allocations: 303.1 kB / 0.5113 GB, free: 1.383 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1702, allocations: 0 / 0.5113 GB, free: 1.383 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006604/0.1709, allocations: 87.78 kB / 0.5113 GB, free: 1.297 MB / 382.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.001858/0.1728, allocations: 1.17 MB / 0.5125 GB, free: 96 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2185/0.3912, allocations: 357.7 kB / 0.5128 GB, free: 23.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.3912, allocations: 0.75 kB / 0.5128 GB, free: 23.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002916/0.3915, allocations: 168.6 kB / 0.513 GB, free: 23.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004841/0.392, allocations: 46.5 kB / 0.513 GB, free: 23.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005361/0.3974, allocations: 4.258 MB / 0.5172 GB, free: 21.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004006/0.3978, allocations: 0.8696 MB / 0.518 GB, free: 20.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002347/0.398, allocations: 93.47 kB / 0.5181 GB, free: 20.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002335/0.3982, allocations: 174.7 kB / 0.5183 GB, free: 20.76 MB / 382.1 MB Notification: Performance of SimCode: time 1.282e-06/0.3982, allocations: 0 / 0.5183 GB, free: 20.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04113/0.4394, allocations: 8.118 MB / 0.5262 GB, free: 20.03 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.11, allocations: 14.22 kB / 0.5262 GB, free: 20.03 MB / 382.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPID_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.949820966998232] Failed to read output from testmodel.py, exit status != 0: 12.21648484999605 12.238481809 12.092712798 Calling exit ...