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.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.001483/0.001483, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002103/0.002103, allocations: 212.3 kB / 22.24 MB, free: 4.855 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.587/1.587, allocations: 230.6 MB / 256 MB, free: 7.816 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.06982/0.06982, allocations: 11.34 MB / 323.8 MB, free: 8.051 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: translateModel(IndustrialControlSystems.Controllers.Examples.TestPD_bias,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias") translateModel(IndustrialControlSystems.Controllers.Examples.TestPD_bias,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias") [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.002058/0.002058, allocations: 63.91 kB / 451.5 MB, free: 9.844 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1306, allocations: 56.07 MB / 0.4956 GB, free: 1.676 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_bias): time 0.00401/0.1346, allocations: 2.15 MB / 0.4977 GB, free: 15.51 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002085/0.1367, allocations: 0.9985 MB / 0.4987 GB, free: 14.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.1368, allocations: 23.75 kB / 0.4987 GB, free: 14.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003087/0.1371, allocations: 87.28 kB / 0.4988 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.1373, allocations: 79.5 kB / 0.4989 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009449/0.1382, allocations: 351.2 kB / 0.4992 GB, free: 13.97 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008123/0.139, allocations: 0.6613 MB / 0.4999 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001856/0.1392, allocations: 76.08 kB / 0.4999 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002863/0.1395, allocations: 231.1 kB / 0.5002 GB, free: 13.01 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003641/0.1399, allocations: 247 kB / 0.5004 GB, free: 12.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.566e-05/0.14, allocations: 36 kB / 0.5004 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001874/0.1401, allocations: 103.9 kB / 0.5005 GB, free: 12.63 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001902/0.1403, allocations: 159.5 kB / 0.5007 GB, free: 12.47 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002115/0.1405, allocations: 186.8 kB / 0.5009 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006514/0.1412, allocations: 0.5327 MB / 0.5014 GB, free: 11.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1412, allocations: 0 / 0.5014 GB, free: 11.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1412, allocations: 0 / 0.5014 GB, free: 11.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.1412, allocations: 0 / 0.5014 GB, free: 11.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: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.001464/0.1427, allocations: 0.8336 MB / 0.5022 GB, free: 10.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.1427, allocations: 8.031 kB / 0.5022 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.1428, allocations: 76.52 kB / 0.5023 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000666/0.1435, allocations: 379 kB / 0.5026 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.349e-05/0.1435, allocations: 37.31 kB / 0.5027 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.875e-05/0.1436, allocations: 48.33 kB / 0.5027 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000882/0.1445, allocations: 0.5801 MB / 0.5033 GB, free: 9.703 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.954e-05/0.1445, allocations: 7.953 kB / 0.5033 GB, free: 9.695 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.197e-05/0.1446, allocations: 23.98 kB / 0.5033 GB, free: 9.672 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.1446, allocations: 8 kB / 0.5033 GB, free: 9.664 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007212/0.1453, allocations: 433.3 kB / 0.5037 GB, free: 9.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002986/0.1483, allocations: 1.983 MB / 0.5057 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006739/0.149, allocations: 292.1 kB / 0.506 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003243/0.1493, allocations: 190.5 kB / 0.5061 GB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.319e-05/0.1493, allocations: 4 kB / 0.5061 GB, free: 6.672 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004699/0.1498, allocations: 290.9 kB / 0.5064 GB, free: 6.363 MB / 382.1 MB Notification: Performance of pre-optimization done (n=36): time 2.354e-06/0.1498, allocations: 0 / 0.5064 GB, free: 6.363 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.001206/0.151, allocations: 0.6448 MB / 0.507 GB, free: 5.688 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.604e-05/0.1511, allocations: 89.11 kB / 0.5071 GB, free: 5.582 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006121/0.1517, allocations: 481.6 kB / 0.5076 GB, free: 5.102 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.1518, allocations: 33.7 kB / 0.5076 GB, free: 5.062 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002658/0.152, allocations: 312.2 kB / 0.5079 GB, free: 4.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/0.1522, allocations: 134.9 kB / 0.5081 GB, free: 4.617 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.1523, allocations: 114.1 kB / 0.5082 GB, free: 4.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.1525, allocations: 370.8 kB / 0.5085 GB, free: 4.129 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003176/0.1528, allocations: 202.8 kB / 0.5087 GB, free: 3.922 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004686/0.1533, allocations: 387.3 kB / 0.5091 GB, free: 3.461 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002243/0.1556, allocations: 1.109 MB / 0.5102 GB, free: 2.246 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.1556, allocations: 4 kB / 0.5102 GB, free: 2.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001234/0.1568, allocations: 0.7825 MB / 0.5109 GB, free: 1.441 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.46e-05/0.1569, allocations: 46.47 kB / 0.511 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.1569, allocations: 8 kB / 0.511 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.428e-05/0.1569, allocations: 12 kB / 0.511 GB, free: 1.371 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004942/0.1574, allocations: 135.7 kB / 0.5111 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.975e-05/0.1574, allocations: 19.88 kB / 0.5111 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002514/0.1577, allocations: 59.61 kB / 0.5112 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.781e-05/0.1577, allocations: 31.98 kB / 0.5112 GB, free: 1.129 MB / 382.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: 27 * Number of states: 0 () * Number of discrete variables: 15 (Disturbance.nextEventScaled,Disturbance.nextEvent,$PRE.Disturbance.nextEvent,Disturbance.last,Disturbance.b,Disturbance.a,$whenCondition1,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 (74): * Single equations (assignments): 73 * 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.000393/0.1581, allocations: 287.5 kB / 0.5115 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.857e-05/0.1582, allocations: 55.61 kB / 0.5116 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009673/0.1591, allocations: 0.5627 MB / 0.5121 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.241e-06/0.1591, allocations: 4 kB / 0.5121 GB, free: 192 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1592, allocations: 3.938 kB / 0.5121 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1592, allocations: 0 / 0.5121 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2984/0.4575, allocations: 359.5 kB / 0.5125 GB, free: 23.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/0.4575, allocations: 0.9375 kB / 0.5125 GB, free: 23.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006111/0.4581, allocations: 79.98 kB / 0.5125 GB, free: 23.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.806e-06/0.4581, allocations: 2.625 kB / 0.5125 GB, free: 23.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.002e-05/0.4582, allocations: 17.72 kB / 0.5125 GB, free: 23.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.264e-06/0.4582, allocations: 3.156 kB / 0.5126 GB, free: 23.26 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.4582, allocations: 0.6562 kB / 0.5126 GB, free: 23.26 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/0.4595, allocations: 0.7821 MB / 0.5133 GB, free: 23.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.507e-05/0.4596, allocations: 50.5 kB / 0.5134 GB, free: 23.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.466e-05/0.4597, allocations: 14.47 kB / 0.5134 GB, free: 23.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.4598, allocations: 17.42 kB / 0.5134 GB, free: 23.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.086e-05/0.4599, allocations: 25.45 kB / 0.5134 GB, free: 23.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.858e-05/0.4599, allocations: 20.2 kB / 0.5134 GB, free: 23.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000304/0.4602, allocations: 306.4 kB / 0.5137 GB, free: 23.01 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4602, allocations: 0 / 0.5137 GB, free: 23.01 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005125/0.4608, allocations: 123.4 kB / 0.5138 GB, free: 23.01 MB / 382.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.0002059/0.461, allocations: 145.9 kB / 0.514 GB, free: 22.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000824/0.4618, allocations: 0.5766 MB / 0.5146 GB, free: 22.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.4618, allocations: 3.25 kB / 0.5146 GB, free: 22.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003167/0.4621, allocations: 277.6 kB / 0.5148 GB, free: 22.69 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003435/0.4625, allocations: 46.95 kB / 0.5149 GB, free: 22.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001709/0.4642, allocations: 1.166 MB / 0.516 GB, free: 22.15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000272/0.4644, allocations: 303.4 kB / 0.5163 GB, free: 22.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002412/0.4647, allocations: 108 kB / 0.5164 GB, free: 22.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.273e-05/0.4648, allocations: 35.28 kB / 0.5164 GB, free: 22.05 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4648, allocations: 0 / 0.5164 GB, free: 22.05 MB / 382.1 MB Notification: Performance of Templates: time 0.01054/0.4753, allocations: 4.108 MB / 0.5204 GB, free: 21.7 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.makefile [Timeout 660] (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 & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.3319728299975395] Failed to read output from testmodel.py, exit status != 0: 0.4840065836906433 0.497210319 0.35299003300000004 Calling exit ...