Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.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.001456/0.001456, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001487/0.001487, allocations: 217.4 kB / 22.99 MB, free: 4.945 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.522/1.522, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.06645/0.06645, allocations: 11.35 MB / 324.5 MB, free: 8.027 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.Applications.ProcessControl.CascadeLevelControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl") translateModel(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl") [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.002196/0.002196, allocations: 66.25 kB / 453.5 MB, free: 8.566 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1068, allocations: 56.07 MB / 0.4976 GB, free: 404 kB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.2363/0.3431, allocations: 23.23 MB / 0.5203 GB, free: 9.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008176/0.3513, allocations: 6.346 MB / 0.5265 GB, free: 7.426 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001032/0.3523, allocations: 73.22 kB / 0.5265 GB, free: 7.379 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.3534, allocations: 441 kB / 0.527 GB, free: 7.188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002591/0.356, allocations: 1.175 MB / 0.5281 GB, free: 6.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003246/0.3592, allocations: 1.351 MB / 0.5294 GB, free: 6.391 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003004/0.3622, allocations: 2.652 MB / 0.532 GB, free: 5.859 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001026/0.3632, allocations: 0.6796 MB / 0.5327 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001865/0.3651, allocations: 1.13 MB / 0.5338 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001343/0.3664, allocations: 0.9222 MB / 0.5347 GB, free: 5.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001949/0.3666, allocations: 100 kB / 0.5348 GB, free: 5.254 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001124/0.3678, allocations: 426.6 kB / 0.5352 GB, free: 5.199 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003707/0.3681, allocations: 397.1 kB / 0.5356 GB, free: 5.125 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005428/0.3687, allocations: 0.539 MB / 0.5361 GB, free: 4.938 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002189/0.3709, allocations: 1.701 MB / 0.5378 GB, free: 4.281 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3709, allocations: 3.938 kB / 0.5378 GB, free: 4.277 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3709, allocations: 0 / 0.5378 GB, free: 4.277 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.866e-05/0.3709, allocations: 1.25 kB / 0.5378 GB, free: 4.277 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.003086/0.374, allocations: 1.589 MB / 0.5393 GB, free: 3.297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.374, allocations: 11.14 kB / 0.5393 GB, free: 3.297 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004894/0.3745, allocations: 160.5 kB / 0.5395 GB, free: 3.223 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001458/0.376, allocations: 0.7932 MB / 0.5403 GB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/0.3761, allocations: 297.4 kB / 0.5405 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.3763, allocations: 102.1 kB / 0.5406 GB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001851/0.3781, allocations: 1.773 MB / 0.5424 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.031e-05/0.3782, allocations: 6.531 kB / 0.5424 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.857e-05/0.3783, allocations: 41.16 kB / 0.5424 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-05/0.3783, allocations: 55.19 kB / 0.5425 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001595/0.3799, allocations: 1.07 MB / 0.5435 GB, free: 0.7734 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007232/0.3872, allocations: 6.014 MB / 0.5494 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001802/0.389, allocations: 0.7473 MB / 0.5501 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007873/0.3898, allocations: 417.3 kB / 0.5505 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002167/0.3919, allocations: 1.03 MB / 0.5515 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.31e-05/0.392, allocations: 51.92 kB / 0.5516 GB, free: 10.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 2.845e-06/0.392, allocations: 0 / 0.5516 GB, free: 10.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=83): time 0.006484/0.3985, allocations: 2.803 MB / 0.5543 GB, free: 8.738 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.3986, allocations: 137.8 kB / 0.5544 GB, free: 8.582 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001328/0.3999, allocations: 0.8988 MB / 0.5553 GB, free: 8.047 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.705e-05/0.4, allocations: 46.48 kB / 0.5554 GB, free: 8 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005415/0.4005, allocations: 0.6161 MB / 0.556 GB, free: 7.445 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002989/0.4008, allocations: 303.6 kB / 0.5562 GB, free: 7.184 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003856/0.4012, allocations: 255.9 kB / 0.5565 GB, free: 7.031 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.4014, allocations: 356.3 kB / 0.5568 GB, free: 6.691 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007381/0.4021, allocations: 420.5 kB / 0.5572 GB, free: 6.492 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001276/0.4034, allocations: 1.003 MB / 0.5582 GB, free: 5.512 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01045/0.4139, allocations: 3.039 MB / 0.5612 GB, free: 3.605 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.145e-05/0.4139, allocations: 6.781 kB / 0.5612 GB, free: 3.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002891/0.4168, allocations: 1.611 MB / 0.5628 GB, free: 2.766 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.4168, allocations: 17.91 kB / 0.5628 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.751e-05/0.4168, allocations: 14.09 kB / 0.5628 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008338/0.4176, allocations: 361.1 kB / 0.5631 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009908/0.4186, allocations: 291.4 kB / 0.5634 GB, free: 2.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004092/0.4227, allocations: 4.041 MB / 0.5674 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.4238, allocations: 56.84 kB / 0.5674 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/0.4239, allocations: 63.98 kB / 0.5675 GB, free: 13.94 MB / 414.1 MB Warning: Assuming fixed start value for the following 3 variables: tank.level:VARIABLE(min = 0.0 start = tank.level_start_eps unit = \"m\" fixed = true stateSelect=StateSelect.prefer ) \"Level height of tank\" type: Real tank.medium.T:VARIABLE(min = 1.0 max = 1e4 start = tank.T_start unit = \"K\" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) \"Temperature of medium\" type: Real actuator.y:VARIABLE(flow=false min = 0.0 max = 1.0 start = actuator.y_start fixed = true ) \"Connector of Real output signal\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 20 (tank.inFlow[3],tank.inFlow[2],tank.inFlow[1],tank.regularFlow[3],tank.regularFlow[2],tank.regularFlow[1],PI_Valve.TS_in,PI_Level.TS_in,PI_Valve.satLOW_in,PI_Valve.satHIGH_in,PI_Valve.ATreq_in,sub.Yfp,sub.U2fp,sub.U1fp,div.Yfp,div.U2fp,div.U1fp,PI_Level.satLOW_in,PI_Level.satHIGH_in,PI_Level.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 149 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(3,7), (2,1), (2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0007882/0.4247, allocations: 345.9 kB / 0.5678 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002219/0.4249, allocations: 119.2 kB / 0.5679 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003169/0.4281, allocations: 1.527 MB / 0.5694 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.397e-05/0.4281, allocations: 8 kB / 0.5694 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.4281, allocations: 0 / 0.5694 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.4281, allocations: 7.812 kB / 0.5694 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004092/0.4322, allocations: 2.165 MB / 0.5715 GB, free: 9.711 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.4322, allocations: 0 / 0.5715 GB, free: 9.711 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007737/0.433, allocations: 159.8 kB / 0.5717 GB, free: 9.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008034/0.4338, allocations: 349.1 kB / 0.572 GB, free: 9.211 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.74e-05/0.4339, allocations: 27.98 kB / 0.572 GB, free: 9.184 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004125/0.438, allocations: 4.029 MB / 0.576 GB, free: 4.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.438, allocations: 0 / 0.576 GB, free: 4.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003691/0.4417, allocations: 1.931 MB / 0.5779 GB, free: 2.957 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006321/0.4423, allocations: 204 kB / 0.5781 GB, free: 2.758 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.4425, allocations: 20 kB / 0.5781 GB, free: 2.738 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005552/0.443, allocations: 35.98 kB / 0.5781 GB, free: 2.703 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002105/0.4432, allocations: 92.77 kB / 0.5782 GB, free: 2.613 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.213e-05/0.4433, allocations: 35.98 kB / 0.5782 GB, free: 2.578 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008238/0.4441, allocations: 0.5566 MB / 0.5788 GB, free: 2.012 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4441, allocations: 0 / 0.5788 GB, free: 2.012 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00149/0.4456, allocations: 351.7 kB / 0.5791 GB, free: 1.668 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (PI_Level.Iaction,PI_Level.Fder,tank.level,tank.medium.T,actuator.y,PI_Valve.Iaction,PI_Valve.Fder) * Number of discrete variables: 6 (tank.regularFlow[1],tank.regularFlow[2],tank.regularFlow[3],tank.inFlow[1],tank.inFlow[2],tank.inFlow[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(3,9), (2,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005379/0.4462, allocations: 282.7 kB / 0.5794 GB, free: 1.391 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002652/0.4488, allocations: 1.349 MB / 0.5807 GB, free: 20 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4488, allocations: 0 / 0.5807 GB, free: 20 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.4502, allocations: 0.7527 MB / 0.5814 GB, free: 15.24 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002086/0.4522, allocations: 438.7 kB / 0.5819 GB, free: 14.82 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004587/0.4568, allocations: 2.45 MB / 0.5842 GB, free: 12.32 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006091/0.4574, allocations: 0.5474 MB / 0.5848 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003265/0.4578, allocations: 115.4 kB / 0.5849 GB, free: 11.62 MB / 430.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4578, allocations: 0 / 0.5849 GB, free: 11.62 MB / 430.1 MB Notification: Performance of Templates: time 0.04333/0.5011, allocations: 31.53 MB / 0.6157 GB, free: 12.17 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.makefile [Timeout 660] (rm -f IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.sim & ./IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.578371240291744] Failed to read output from testmodel.py, exit status != 0: 0.5103416526690125 0.524936512 0.15078115 Calling exit ...