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.001285/0.001285, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001462/0.001462, allocations: 210 kB / 23 MB, free: 4.566 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.405/1.405, allocations: 230.6 MB / 256.8 MB, free: 8.004 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.06406/0.06406, allocations: 11.34 MB / 324.5 MB, free: 8.25 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.002633/0.002633, allocations: 71.89 kB / 453.5 MB, free: 8.758 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1183, allocations: 56.07 MB / 0.4977 GB, free: 0.5938 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.2347/0.353, allocations: 25.65 MB / 0.5227 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008544/0.3615, allocations: 6.896 MB / 0.5295 GB, free: 6.492 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001333/0.3629, allocations: 73.06 kB / 0.5295 GB, free: 6.445 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001271/0.3641, allocations: 459.7 kB / 0.53 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003075/0.3672, allocations: 1.173 MB / 0.5311 GB, free: 5.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003558/0.3708, allocations: 1.356 MB / 0.5324 GB, free: 5.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003804/0.3746, allocations: 2.658 MB / 0.535 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001278/0.3759, allocations: 0.6882 MB / 0.5357 GB, free: 4.824 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002289/0.3781, allocations: 1.122 MB / 0.5368 GB, free: 4.543 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001706/0.3799, allocations: 0.9696 MB / 0.5377 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002546/0.3801, allocations: 107.8 kB / 0.5378 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001485/0.3816, allocations: 0.4984 MB / 0.5383 GB, free: 3.996 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004268/0.382, allocations: 397.8 kB / 0.5387 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007063/0.3827, allocations: 0.6502 MB / 0.5394 GB, free: 3.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002332/0.3851, allocations: 1.717 MB / 0.541 GB, free: 2.738 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.3851, allocations: 0 / 0.541 GB, free: 2.738 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3851, allocations: 0 / 0.541 GB, free: 2.738 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.194e-05/0.3851, allocations: 1.094 kB / 0.541 GB, free: 2.738 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.003377/0.3885, allocations: 1.59 MB / 0.5426 GB, free: 1.758 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.3885, allocations: 9.094 kB / 0.5426 GB, free: 1.758 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004818/0.389, allocations: 163 kB / 0.5427 GB, free: 1.684 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001441/0.3904, allocations: 0.7912 MB / 0.5435 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001684/0.3906, allocations: 297.3 kB / 0.5438 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001478/0.3907, allocations: 97.53 kB / 0.5439 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001892/0.3926, allocations: 1.394 MB / 0.5453 GB, free: 52 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.475e-05/0.3927, allocations: 7.422 kB / 0.5453 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-05/0.3928, allocations: 48.8 kB / 0.5453 GB, free: 12 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.476e-05/0.3928, allocations: 58.66 kB / 0.5454 GB, free: 0 / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001914/0.3948, allocations: 1.067 MB / 0.5464 GB, free: 15.48 MB / 398.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.008949/0.4037, allocations: 7.027 MB / 0.5533 GB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00163/0.4053, allocations: 0.7475 MB / 0.554 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006854/0.406, allocations: 416.8 kB / 0.5544 GB, free: 8.629 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002494/0.4085, allocations: 1.167 MB / 0.5555 GB, free: 7.773 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.097e-05/0.4086, allocations: 44.66 kB / 0.5556 GB, free: 7.727 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 3.397e-06/0.4086, allocations: 1.078 kB / 0.5556 GB, free: 7.727 MB / 398.1 MB Notification: Performance of matching and sorting (n=83): time 0.006815/0.4154, allocations: 2.815 MB / 0.5583 GB, free: 6.141 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.808e-05/0.4155, allocations: 137.8 kB / 0.5585 GB, free: 5.984 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/0.4167, allocations: 0.9349 MB / 0.5594 GB, free: 5.449 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001013/0.4168, allocations: 46.7 kB / 0.5594 GB, free: 5.402 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005019/0.4173, allocations: 0.6082 MB / 0.56 GB, free: 4.855 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002844/0.4176, allocations: 306.2 kB / 0.5603 GB, free: 4.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003488/0.418, allocations: 256.4 kB / 0.5605 GB, free: 4.441 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.4182, allocations: 355.5 kB / 0.5609 GB, free: 4.102 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007518/0.4189, allocations: 421.4 kB / 0.5613 GB, free: 3.898 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001135/0.42, allocations: 0.9256 MB / 0.5622 GB, free: 3 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01078/0.4308, allocations: 3.04 MB / 0.5652 GB, free: 1.082 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.687e-06/0.4308, allocations: 5.344 kB / 0.5652 GB, free: 1.082 MB / 398.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003127/0.434, allocations: 1.623 MB / 0.5668 GB, free: 15.81 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.346e-05/0.434, allocations: 12 kB / 0.5668 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/0.434, allocations: 16 kB / 0.5668 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009527/0.435, allocations: 366.5 kB / 0.5671 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.436, allocations: 291.5 kB / 0.5674 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00432/0.4403, allocations: 4.088 MB / 0.5714 GB, free: 10.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.4415, allocations: 52.03 kB / 0.5714 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001416/0.4416, allocations: 63.98 kB / 0.5715 GB, free: 10.7 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.0007924/0.4424, allocations: 350.7 kB / 0.5718 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002662/0.4427, allocations: 127.2 kB / 0.572 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003193/0.4459, allocations: 1.517 MB / 0.5734 GB, free: 8.707 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-05/0.4459, allocations: 12 kB / 0.5735 GB, free: 8.695 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.4459, allocations: 3.938 kB / 0.5735 GB, free: 8.691 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.687e-05/0.4459, allocations: 18.53 kB / 0.5735 GB, free: 8.676 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004555/0.4505, allocations: 2.384 MB / 0.5758 GB, free: 6.219 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.4505, allocations: 2.859 kB / 0.5758 GB, free: 6.219 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008128/0.4513, allocations: 163.8 kB / 0.576 GB, free: 6.059 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008229/0.4521, allocations: 356.6 kB / 0.5763 GB, free: 5.707 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.056e-05/0.4522, allocations: 20 kB / 0.5763 GB, free: 5.688 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003983/0.4562, allocations: 4.082 MB / 0.5803 GB, free: 1.352 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.4562, allocations: 4 kB / 0.5803 GB, free: 1.348 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003731/0.4599, allocations: 1.932 MB / 0.5822 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007334/0.4607, allocations: 215 kB / 0.5824 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001793/0.4608, allocations: 20 kB / 0.5824 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005953/0.4614, allocations: 35.48 kB / 0.5825 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000221/0.4617, allocations: 96.77 kB / 0.5826 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.297e-05/0.4618, allocations: 35.98 kB / 0.5826 GB, free: 14.98 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0009461/0.4627, allocations: 0.6372 MB / 0.5832 GB, free: 14.34 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4627, allocations: 0 / 0.5832 GB, free: 14.34 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001661/0.4644, allocations: 347.7 kB / 0.5835 GB, free: 14 MB / 430.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.0006705/0.465, allocations: 278.9 kB / 0.5838 GB, free: 13.72 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002758/0.4678, allocations: 1.345 MB / 0.5851 GB, free: 12.35 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/0.4678, allocations: 96 / 0.5851 GB, free: 12.35 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001344/0.4691, allocations: 0.7643 MB / 0.5859 GB, free: 11.56 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002518/0.4717, allocations: 499.7 kB / 0.5863 GB, free: 11.08 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004566/0.4762, allocations: 2.475 MB / 0.5888 GB, free: 8.562 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008997/0.4771, allocations: 1.137 MB / 0.5899 GB, free: 7.398 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004329/0.4776, allocations: 115.4 kB / 0.59 GB, free: 7.285 MB / 430.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4776, allocations: 4 kB / 0.59 GB, free: 7.281 MB / 430.1 MB Notification: Performance of Templates: time 0.04352/0.5211, allocations: 31.9 MB / 0.6211 GB, free: 7.469 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: 11.07197719020769] Failed to read output from testmodel.py, exit status != 0: 0.5320408798288554 0.546209875 0.15774653599999994 Calling exit ...