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.00176/0.00176, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.002163/0.002163, allocations: 159.6 kB / 23.01 MB, free: 4.594 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: 177.2 MB / 203.4 MB, free: 8.992 MB / 190.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.06105/0.06105, allocations: 8.615 MB / 268.4 MB, free: 8.578 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.002098/0.002098, allocations: 71.89 kB / 397.3 MB, free: 6.695 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1309, allocations: 56.04 MB / 453.4 MB, free: 14.54 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.02883/0.1598, allocations: 23.24 MB / 476.6 MB, free: 7.203 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01134/0.1711, allocations: 6.342 MB / 482.9 MB, free: 0.8477 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001428/0.1725, allocations: 71.25 kB / 483 MB, free: 0.7773 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00133/0.1738, allocations: 428.9 kB / 483.4 MB, free: 364 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2784/0.4522, allocations: 1.175 MB / 484.6 MB, free: 41.3 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003621/0.4558, allocations: 1.349 MB / 486 MB, free: 41.3 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003497/0.4593, allocations: 2.648 MB / 488.6 MB, free: 41.3 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001194/0.4605, allocations: 0.6853 MB / 489.3 MB, free: 41.28 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00225/0.4628, allocations: 1.124 MB / 490.4 MB, free: 41.23 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001658/0.4644, allocations: 0.9246 MB / 491.3 MB, free: 41.09 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002028/0.4646, allocations: 104.1 kB / 491.4 MB, free: 41.09 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001195/0.4658, allocations: 423.7 kB / 491.9 MB, free: 41.07 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003593/0.4662, allocations: 399.5 kB / 492.2 MB, free: 41.02 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006462/0.4668, allocations: 0.5371 MB / 492.8 MB, free: 40.87 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002288/0.4691, allocations: 1.702 MB / 494.5 MB, free: 40.6 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.4691, allocations: 0 / 494.5 MB, free: 40.6 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4691, allocations: 0.5 kB / 494.5 MB, free: 40.6 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.948e-05/0.4692, allocations: 4 kB / 494.5 MB, free: 40.6 MB / 446.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.00315/0.4723, allocations: 1.593 MB / 496.1 MB, free: 39.83 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.4723, allocations: 6.594 kB / 496.1 MB, free: 39.83 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004466/0.4728, allocations: 167.9 kB / 496.3 MB, free: 39.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001304/0.4741, allocations: 0.7842 MB / 497 MB, free: 39.46 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001637/0.4743, allocations: 297.4 kB / 497.3 MB, free: 39.21 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.4744, allocations: 105.2 kB / 497.4 MB, free: 39.21 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/0.4762, allocations: 1.772 MB / 499.2 MB, free: 38.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.195e-05/0.4763, allocations: 6.469 kB / 499.2 MB, free: 38.34 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-05/0.4764, allocations: 42.22 kB / 499.3 MB, free: 38.34 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.516e-05/0.4764, allocations: 55.36 kB / 499.3 MB, free: 38.34 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001543/0.478, allocations: 1.065 MB / 0.4886 GB, free: 38.33 MB / 446.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.006089/0.4841, allocations: 6.021 MB / 0.4945 GB, free: 34.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/0.4855, allocations: 0.7437 MB / 0.4953 GB, free: 34.67 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005836/0.4861, allocations: 417 kB / 0.4956 GB, free: 34.66 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001934/0.488, allocations: 1.039 MB / 0.4967 GB, free: 34.36 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.488, allocations: 48.86 kB / 0.4967 GB, free: 34.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=78): time 2.394e-06/0.488, allocations: 0 / 0.4967 GB, free: 34.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=83): time 0.005963/0.494, allocations: 2.799 MB / 0.4994 GB, free: 33.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.353e-05/0.4941, allocations: 138.7 kB / 0.4996 GB, free: 33.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009184/0.495, allocations: 0.9056 MB / 0.5005 GB, free: 33.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.005e-05/0.4951, allocations: 42.39 kB / 0.5005 GB, free: 33.05 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003098/0.4954, allocations: 0.6148 MB / 0.5011 GB, free: 32.56 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/0.4955, allocations: 306.5 kB / 0.5014 GB, free: 32.33 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003322/0.4959, allocations: 256.2 kB / 0.5016 GB, free: 32.21 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.321e-05/0.496, allocations: 355 kB / 0.502 GB, free: 31.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006968/0.4967, allocations: 428.2 kB / 0.5024 GB, free: 31.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009132/0.4976, allocations: 0.9987 MB / 0.5034 GB, free: 30.87 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01078/0.5083, allocations: 3.034 MB / 0.5063 GB, free: 29.63 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.003e-05/0.5084, allocations: 5.344 kB / 0.5063 GB, free: 29.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003473/0.5119, allocations: 1.618 MB / 0.5079 GB, free: 29.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.964e-05/0.5119, allocations: 12.25 kB / 0.5079 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.477e-05/0.5119, allocations: 15.19 kB / 0.5079 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001065/0.513, allocations: 367 kB / 0.5083 GB, free: 28.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001276/0.5142, allocations: 284.2 kB / 0.5086 GB, free: 28.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00336/0.5176, allocations: 4.04 MB / 0.5125 GB, free: 25.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001/0.5186, allocations: 56.61 kB / 0.5126 GB, free: 25.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001544/0.5188, allocations: 63.97 kB / 0.5126 GB, free: 25.43 MB / 446.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.0008306/0.5196, allocations: 341.8 kB / 0.5129 GB, free: 25.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003035/0.5199, allocations: 119.1 kB / 0.5131 GB, free: 25.14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00302/0.5229, allocations: 1.518 MB / 0.5145 GB, free: 24.54 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.807e-05/0.5229, allocations: 12.97 kB / 0.5145 GB, free: 24.54 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.5229, allocations: 0 / 0.5145 GB, free: 24.54 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.5229, allocations: 3.188 kB / 0.5146 GB, free: 24.54 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003668/0.5266, allocations: 2.173 MB / 0.5167 GB, free: 23.56 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.5266, allocations: 3.188 kB / 0.5167 GB, free: 23.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007661/0.5274, allocations: 161.4 kB / 0.5168 GB, free: 23.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007237/0.5281, allocations: 350.5 kB / 0.5172 GB, free: 23.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-05/0.5282, allocations: 24.03 kB / 0.5172 GB, free: 23.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002782/0.531, allocations: 4.028 MB / 0.5211 GB, free: 19.93 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.531, allocations: 2.312 kB / 0.5211 GB, free: 19.93 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0034/0.5344, allocations: 1.93 MB / 0.523 GB, free: 19.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005492/0.5349, allocations: 204.6 kB / 0.5232 GB, free: 18.94 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002231/0.5351, allocations: 22.78 kB / 0.5232 GB, free: 18.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006673/0.5358, allocations: 30.22 kB / 0.5233 GB, free: 18.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002054/0.536, allocations: 89.03 kB / 0.5233 GB, free: 18.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.6e-05/0.5361, allocations: 37.25 kB / 0.5234 GB, free: 18.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009423/0.537, allocations: 0.5604 MB / 0.5239 GB, free: 18.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.537, allocations: 0 / 0.5239 GB, free: 18.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001719/0.5387, allocations: 347.9 kB / 0.5243 GB, free: 18.6 MB / 446.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.0005128/0.5393, allocations: 279.1 kB / 0.5245 GB, free: 18.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00267/0.5419, allocations: 1.348 MB / 0.5258 GB, free: 17.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5419, allocations: 0 / 0.5258 GB, free: 17.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001343/0.5433, allocations: 0.7711 MB / 0.5266 GB, free: 17.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002045/0.5453, allocations: 436.6 kB / 0.527 GB, free: 17.39 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004494/0.5498, allocations: 2.389 MB / 0.5293 GB, free: 16.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008199/0.5506, allocations: 0.5497 MB / 0.5299 GB, free: 16.03 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001171/0.5518, allocations: 315 kB / 0.5302 GB, free: 15.96 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003083/0.5521, allocations: 109.1 kB / 0.5303 GB, free: 15.95 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5521, allocations: 0 / 0.5303 GB, free: 15.95 MB / 446.1 MB Notification: Performance of Templates: time 0.04109/0.5932, allocations: 20.85 MB / 0.5506 GB, free: 9.891 MB / 446.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 -s ida -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.920680203009397] Failed to read output from testmodel.py, exit status != 0: 0.6025684690102935 0.613736924 0.14129909000000002 Calling exit ...