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.001389/0.001389, 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.001818/0.001818, allocations: 216 kB / 22.25 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.589/1.589, allocations: 230.6 MB / 256 MB, free: 7.789 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.06941/0.06941, allocations: 11.33 MB / 323.8 MB, free: 8.043 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.002524/0.002524, allocations: 67.89 kB / 452.7 MB, free: 8.566 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1586, allocations: 56.07 MB / 0.4969 GB, free: 404 kB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.3641/0.5227, allocations: 23.23 MB / 0.5195 GB, free: 9.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0107/0.5334, allocations: 6.343 MB / 0.5257 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001447/0.5349, allocations: 74.66 kB / 0.5258 GB, free: 7.398 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001475/0.5363, allocations: 438.5 kB / 0.5262 GB, free: 7.211 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003895/0.5402, allocations: 1.185 MB / 0.5274 GB, free: 6.672 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00427/0.5445, allocations: 1.34 MB / 0.5287 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003859/0.5484, allocations: 2.651 MB / 0.5313 GB, free: 5.879 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001312/0.5497, allocations: 0.6768 MB / 0.5319 GB, free: 5.809 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002614/0.5523, allocations: 1.133 MB / 0.533 GB, free: 5.527 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00194/0.5542, allocations: 0.924 MB / 0.5339 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002535/0.5545, allocations: 100.2 kB / 0.534 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001457/0.5559, allocations: 427 kB / 0.5344 GB, free: 5.219 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004005/0.5563, allocations: 396.7 kB / 0.5348 GB, free: 5.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007524/0.5571, allocations: 0.54 MB / 0.5354 GB, free: 4.941 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002817/0.5599, allocations: 1.702 MB / 0.537 GB, free: 4.285 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.5599, allocations: 1.125 kB / 0.537 GB, free: 4.285 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.5599, allocations: 0 / 0.537 GB, free: 4.285 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.523e-05/0.5599, allocations: 0 / 0.537 GB, free: 4.285 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.003436/0.5634, allocations: 1.595 MB / 0.5386 GB, free: 3.301 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.5634, allocations: 9.375 kB / 0.5386 GB, free: 3.301 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000585/0.564, allocations: 161.9 kB / 0.5387 GB, free: 3.227 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001734/0.5658, allocations: 0.7926 MB / 0.5395 GB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000192/0.5659, allocations: 298.4 kB / 0.5398 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001646/0.5661, allocations: 101.2 kB / 0.5399 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002146/0.5683, allocations: 1.765 MB / 0.5416 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.372e-05/0.5683, allocations: 6.094 kB / 0.5416 GB, free: 1.199 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001115/0.5684, allocations: 41.97 kB / 0.5417 GB, free: 1.172 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.779e-05/0.5685, allocations: 59.33 kB / 0.5417 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001836/0.5703, allocations: 1.071 MB / 0.5428 GB, free: 0.793 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.008497/0.5788, allocations: 6.009 MB / 0.5486 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001714/0.5805, allocations: 0.7556 MB / 0.5494 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007101/0.5812, allocations: 413.6 kB / 0.5498 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002455/0.5837, allocations: 1.025 MB / 0.5508 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.188e-05/0.5837, allocations: 48.53 kB / 0.5508 GB, free: 10.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 2.575e-06/0.5837, allocations: 0 / 0.5508 GB, free: 10.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=83): time 0.007208/0.591, allocations: 2.805 MB / 0.5536 GB, free: 8.766 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.5911, allocations: 146.7 kB / 0.5537 GB, free: 8.602 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001373/0.5924, allocations: 0.8939 MB / 0.5546 GB, free: 8.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.772e-05/0.5925, allocations: 41.83 kB / 0.5546 GB, free: 8.027 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005601/0.5931, allocations: 0.6203 MB / 0.5552 GB, free: 7.469 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003279/0.5934, allocations: 303.7 kB / 0.5555 GB, free: 7.207 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004435/0.5939, allocations: 256 kB / 0.5557 GB, free: 7.055 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002239/0.5941, allocations: 356 kB / 0.5561 GB, free: 6.715 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000797/0.5949, allocations: 425.9 kB / 0.5565 GB, free: 6.512 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.5962, allocations: 1.002 MB / 0.5575 GB, free: 5.531 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01126/0.6075, allocations: 3.044 MB / 0.5604 GB, free: 3.621 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.166e-05/0.6075, allocations: 2.719 kB / 0.5604 GB, free: 3.621 MB / 398.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.004026/0.6115, allocations: 1.608 MB / 0.562 GB, free: 2.785 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.421e-05/0.6116, allocations: 15.81 kB / 0.562 GB, free: 2.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.785e-05/0.6116, allocations: 16.34 kB / 0.562 GB, free: 2.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00094/0.6126, allocations: 367 kB / 0.5624 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.6136, allocations: 286.2 kB / 0.5627 GB, free: 2.355 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004868/0.6184, allocations: 4.045 MB / 0.5666 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/0.6197, allocations: 51.97 kB / 0.5667 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001283/0.6198, allocations: 63.98 kB / 0.5667 GB, free: 13.98 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.0009669/0.6207, allocations: 342.1 kB / 0.5671 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002514/0.621, allocations: 119.2 kB / 0.5672 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003393/0.6244, allocations: 1.522 MB / 0.5687 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.732e-05/0.6244, allocations: 12 kB / 0.5687 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.6244, allocations: 2.672 kB / 0.5687 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.584e-05/0.6244, allocations: 11.92 kB / 0.5687 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004817/0.6292, allocations: 2.165 MB / 0.5708 GB, free: 9.754 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.6293, allocations: 4 kB / 0.5708 GB, free: 9.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007916/0.63, allocations: 163.8 kB / 0.571 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008963/0.6309, allocations: 340.1 kB / 0.5713 GB, free: 9.254 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.095e-05/0.631, allocations: 23.98 kB / 0.5713 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004854/0.6359, allocations: 4.031 MB / 0.5752 GB, free: 4.969 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.6359, allocations: 4 kB / 0.5752 GB, free: 4.965 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004006/0.6399, allocations: 1.932 MB / 0.5771 GB, free: 2.992 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008293/0.6407, allocations: 203 kB / 0.5773 GB, free: 2.793 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003339/0.6411, allocations: 24 kB / 0.5773 GB, free: 2.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008044/0.6419, allocations: 27.98 kB / 0.5774 GB, free: 2.742 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002548/0.6421, allocations: 92.83 kB / 0.5775 GB, free: 2.652 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/0.6422, allocations: 35.98 kB / 0.5775 GB, free: 2.617 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00108/0.6433, allocations: 0.5605 MB / 0.578 GB, free: 2.047 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6433, allocations: 0 / 0.578 GB, free: 2.047 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002015/0.6453, allocations: 347.8 kB / 0.5784 GB, free: 1.707 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.0007167/0.646, allocations: 289.4 kB / 0.5786 GB, free: 1.418 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002853/0.6489, allocations: 1.337 MB / 0.58 GB, free: 60 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/0.6489, allocations: 4 kB / 0.58 GB, free: 56 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001607/0.6505, allocations: 0.7686 MB / 0.5807 GB, free: 15.26 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002504/0.653, allocations: 442.4 kB / 0.5811 GB, free: 14.84 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006212/0.6592, allocations: 2.402 MB / 0.5835 GB, free: 12.39 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009646/0.6602, allocations: 0.5474 MB / 0.584 GB, free: 11.81 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001418/0.6616, allocations: 298.9 kB / 0.5843 GB, free: 11.53 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000422/0.662, allocations: 107.4 kB / 0.5844 GB, free: 11.42 MB / 430.1 MB Notification: Performance of SimCode: time 1.102e-06/0.662, allocations: 0 / 0.5844 GB, free: 11.42 MB / 430.1 MB Notification: Performance of Templates: time 0.04391/0.7059, allocations: 22.42 MB / 0.6063 GB, free: 5.406 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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.293175330385566] Failed to read output from testmodel.py, exit status != 0: 0.71684854850173 0.731708464 0.16834389300000002 Calling exit ...