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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 120.3 kB / 17.13 MB, free: 5.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 191.7 kB / 20.08 MB, free: 2.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 225.6 MB / 248.5 MB, free: 3.629 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06119/0.06119, allocations: 11.34 MB / 314.7 MB, free: 0.8477 MB / 238.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-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001856/0.001856, allocations: 63.91 kB / 439.7 MB, free: 6.508 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2516, allocations: 54.82 MB / 494.6 MB, free: 24.12 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.01977/0.2714, allocations: 25.25 MB / 0.5076 GB, free: 4.289 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009152/0.2805, allocations: 6.867 MB / 0.5143 GB, free: 14.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00153/0.2821, allocations: 49.06 kB / 0.5144 GB, free: 14.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001438/0.2835, allocations: 455.7 kB / 0.5148 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00351/0.287, allocations: 1.152 MB / 0.5159 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003766/0.2908, allocations: 1.34 MB / 0.5172 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004332/0.2951, allocations: 2.645 MB / 0.5198 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001337/0.2964, allocations: 0.6952 MB / 0.5205 GB, free: 9.887 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002329/0.2988, allocations: 1.101 MB / 0.5216 GB, free: 8.781 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001627/0.3004, allocations: 0.9571 MB / 0.5225 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002155/0.3006, allocations: 104 kB / 0.5226 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001398/0.302, allocations: 471.3 kB / 0.5231 GB, free: 7.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004526/0.3025, allocations: 402.5 kB / 0.5234 GB, free: 6.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007988/0.3033, allocations: 0.6451 MB / 0.5241 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002629/0.3059, allocations: 1.681 MB / 0.5257 GB, free: 4.527 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3059, allocations: 0 / 0.5257 GB, free: 4.527 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3059, allocations: 0 / 0.5257 GB, free: 4.527 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.589e-05/0.3059, allocations: 0 / 0.5257 GB, free: 4.527 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.003387/0.3093, allocations: 1.658 MB / 0.5273 GB, free: 2.816 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.3094, allocations: 8.031 kB / 0.5273 GB, free: 2.809 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004939/0.3099, allocations: 175.9 kB / 0.5275 GB, free: 2.637 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001652/0.3115, allocations: 0.8822 MB / 0.5284 GB, free: 1.711 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002271/0.3117, allocations: 223 kB / 0.5286 GB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000171/0.3119, allocations: 92.38 kB / 0.5287 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002375/0.3143, allocations: 1.397 MB / 0.53 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.247e-05/0.3143, allocations: 3.938 kB / 0.53 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001161/0.3144, allocations: 44 kB / 0.5301 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-05/0.3145, allocations: 53.97 kB / 0.5301 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001906/0.3164, allocations: 1.073 MB / 0.5312 GB, free: 14.67 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.008972/0.3254, allocations: 7.117 MB / 0.5381 GB, free: 7.176 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001707/0.3271, allocations: 0.7461 MB / 0.5389 GB, free: 6.422 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000714/0.3278, allocations: 411.1 kB / 0.5393 GB, free: 6.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003076/0.3309, allocations: 2.312 MB / 0.5415 GB, free: 3.406 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.282e-05/0.3309, allocations: 47.22 kB / 0.5416 GB, free: 3.352 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 2.264e-06/0.3309, allocations: 0 / 0.5416 GB, free: 3.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=83): time 0.007221/0.3382, allocations: 3.113 MB / 0.5446 GB, free: 124 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.3383, allocations: 145.5 kB / 0.5447 GB, free: 15.95 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001257/0.3395, allocations: 0.9393 MB / 0.5457 GB, free: 14.99 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.7e-05/0.3396, allocations: 41.7 kB / 0.5457 GB, free: 14.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005036/0.3401, allocations: 0.609 MB / 0.5463 GB, free: 14.33 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002789/0.3404, allocations: 309.5 kB / 0.5466 GB, free: 14.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003777/0.3408, allocations: 258.7 kB / 0.5468 GB, free: 13.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.3409, allocations: 361.9 kB / 0.5472 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007744/0.3417, allocations: 422.4 kB / 0.5476 GB, free: 12.99 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001208/0.3429, allocations: 0.9243 MB / 0.5485 GB, free: 11.83 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01139/0.3543, allocations: 3.033 MB / 0.5514 GB, free: 8.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.298e-05/0.3543, allocations: 4 kB / 0.5514 GB, free: 8.566 MB / 414.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.00315/0.3575, allocations: 1.617 MB / 0.553 GB, free: 6.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.588e-05/0.3575, allocations: 14.34 kB / 0.553 GB, free: 6.918 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.622e-05/0.3575, allocations: 19.94 kB / 0.5531 GB, free: 6.898 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009114/0.3585, allocations: 366.3 kB / 0.5534 GB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009655/0.3594, allocations: 279.5 kB / 0.5537 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00412/0.3635, allocations: 4.301 MB / 0.5579 GB, free: 1.656 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008749/0.3644, allocations: 52.12 kB / 0.5579 GB, free: 1.605 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.3645, allocations: 67.98 kB / 0.558 GB, free: 1.539 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.0006442/0.3652, allocations: 341 kB / 0.5583 GB, free: 1.199 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002082/0.3654, allocations: 123.2 kB / 0.5584 GB, free: 1.078 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00327/0.3687, allocations: 1.525 MB / 0.5599 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.439e-05/0.3687, allocations: 11.98 kB / 0.5599 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.3687, allocations: 0 / 0.5599 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.448e-05/0.3687, allocations: 7.922 kB / 0.5599 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004135/0.3728, allocations: 2.42 MB / 0.5623 GB, free: 13.03 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.3728, allocations: 0 / 0.5623 GB, free: 13.03 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007965/0.3736, allocations: 164 kB / 0.5625 GB, free: 12.87 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008151/0.3744, allocations: 346.4 kB / 0.5628 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.525e-05/0.3745, allocations: 23.98 kB / 0.5628 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004431/0.3789, allocations: 4.278 MB / 0.567 GB, free: 7.91 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3789, allocations: 3.984 kB / 0.567 GB, free: 7.906 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003664/0.3826, allocations: 1.932 MB / 0.5689 GB, free: 5.934 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005982/0.3832, allocations: 296.1 kB / 0.5692 GB, free: 5.625 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.3833, allocations: 28 kB / 0.5692 GB, free: 5.598 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000588/0.3839, allocations: 31.92 kB / 0.5692 GB, free: 5.566 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002516/0.3842, allocations: 88.88 kB / 0.5693 GB, free: 5.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.988e-05/0.3843, allocations: 35.98 kB / 0.5693 GB, free: 5.445 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0009056/0.3852, allocations: 0.6333 MB / 0.57 GB, free: 4.805 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3852, allocations: 0 / 0.57 GB, free: 4.805 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001341/0.3865, allocations: 351.7 kB / 0.5703 GB, free: 4.461 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.0007091/0.3872, allocations: 314.5 kB / 0.5706 GB, free: 4.16 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002758/0.39, allocations: 1.345 MB / 0.5719 GB, free: 2.789 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.39, allocations: 4.188 kB / 0.5719 GB, free: 2.785 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001388/0.3914, allocations: 0.7527 MB / 0.5726 GB, free: 2.008 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002154/0.3935, allocations: 493.8 kB / 0.5731 GB, free: 1.527 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004334/0.3979, allocations: 2.456 MB / 0.5755 GB, free: 15.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008381/0.3987, allocations: 1.134 MB / 0.5766 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003296/0.399, allocations: 111.4 kB / 0.5767 GB, free: 13.75 MB / 446.1 MB Notification: Performance of SimCode: time 8.41e-07/0.399, allocations: 3.938 kB / 0.5767 GB, free: 13.75 MB / 446.1 MB Notification: Performance of Templates: time 0.2593/0.6583, allocations: 31.94 MB / 0.6079 GB, free: 106.6 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.778406800003722] Failed to read output from testmodel.py, exit status != 0: 0.6663473891094327 0.6774772950000001 0.368935869 Calling exit ...