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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl") translateModel(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00173/0.00173, allocations: 105.8 kB / 16.27 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001927/0.001927, allocations: 190.3 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06528/0.06528, allocations: 11.21 MB / 302.3 MB, free: 4.121 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 63.91 kB / 365.3 MB, free: 5.062 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1967/0.1987, allocations: 51.99 MB / 417.2 MB, free: 22.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.01957/0.2183, allocations: 25.04 MB / 442.3 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01134/0.2297, allocations: 6.85 MB / 449.1 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001358/0.2311, allocations: 51.62 kB / 449.2 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001208/0.2324, allocations: 444.8 kB / 449.6 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002842/0.2352, allocations: 1.134 MB / 450.8 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003374/0.2386, allocations: 1.325 MB / 452.1 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003432/0.242, allocations: 2.632 MB / 454.7 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001217/0.2433, allocations: 0.7888 MB / 455.5 MB, free: 88 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001872/0.2452, allocations: 1.07 MB / 456.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001337/0.2465, allocations: 0.9103 MB / 457.5 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002107/0.2467, allocations: 104 kB / 457.6 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001214/0.248, allocations: 459.4 kB / 458 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004291/0.2484, allocations: 386.8 kB / 458.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007399/0.2491, allocations: 0.649 MB / 459.1 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002131/0.2513, allocations: 1.643 MB / 460.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2513, allocations: 4 kB / 460.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2513, allocations: 0 / 460.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.683e-05/0.2513, allocations: 0 / 460.7 MB, free: 10.86 MB / 334.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.003307/0.2546, allocations: 1.628 MB / 462.3 MB, free: 9.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.2547, allocations: 12.03 kB / 462.3 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004732/0.2552, allocations: 159.2 kB / 462.5 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001334/0.2565, allocations: 0.8111 MB / 463.3 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/0.2567, allocations: 219 kB / 463.5 MB, free: 7.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001703/0.2569, allocations: 96.38 kB / 463.6 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002249/0.2592, allocations: 1.389 MB / 465 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.218e-05/0.2592, allocations: 7.938 kB / 465 MB, free: 6.285 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/0.2593, allocations: 43.98 kB / 465.1 MB, free: 6.242 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.13e-05/0.2594, allocations: 65.91 kB / 465.1 MB, free: 6.176 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001958/0.2614, allocations: 1.069 MB / 466.2 MB, free: 5.109 MB / 334.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.008606/0.27, allocations: 7.116 MB / 473.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.2718, allocations: 0.7968 MB / 474.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007714/0.2726, allocations: 453.4 kB / 474.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002921/0.2755, allocations: 2.304 MB / 476.9 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.75e-05/0.2756, allocations: 39.22 kB / 476.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of pre-optimization done (n=78): time 2.505e-06/0.2756, allocations: 3.938 kB / 476.9 MB, free: 9.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.007243/0.2828, allocations: 3.118 MB / 480 MB, free: 6.465 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.283, allocations: 137.5 kB / 480.1 MB, free: 6.301 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/0.2843, allocations: 0.943 MB / 481.1 MB, free: 5.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.684e-05/0.2845, allocations: 41.7 kB / 481.1 MB, free: 5.293 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005229/0.285, allocations: 0.588 MB / 481.7 MB, free: 4.695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002916/0.2853, allocations: 299.8 kB / 482 MB, free: 4.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003912/0.2857, allocations: 246.7 kB / 482.3 MB, free: 4.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002054/0.2859, allocations: 365.9 kB / 482.6 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008103/0.2867, allocations: 418.4 kB / 483 MB, free: 3.379 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.288, allocations: 0.9282 MB / 483.9 MB, free: 2.219 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01175/0.2998, allocations: 3.038 MB / 487 MB, free: 14.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-05/0.2998, allocations: 4 kB / 487 MB, free: 14.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003177/0.303, allocations: 1.616 MB / 488.6 MB, free: 13.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.572e-05/0.3031, allocations: 12 kB / 488.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.356e-05/0.3031, allocations: 19.94 kB / 488.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009614/0.3041, allocations: 374.6 kB / 489 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.3051, allocations: 279.5 kB / 489.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004293/0.3094, allocations: 4.301 MB / 493.6 MB, free: 8.027 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008602/0.3103, allocations: 52.03 kB / 493.6 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.3104, allocations: 60 kB / 493.7 MB, free: 7.918 MB / 366.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 = 10000.0 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.0006925/0.3111, allocations: 339.8 kB / 494 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002352/0.3114, allocations: 118.5 kB / 494.1 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003298/0.3147, allocations: 1.529 MB / 495.7 MB, free: 5.934 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/0.3147, allocations: 8 kB / 495.7 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.3147, allocations: 0 / 495.7 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-05/0.3147, allocations: 7.922 kB / 495.7 MB, free: 5.918 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004295/0.319, allocations: 2.428 MB / 498.1 MB, free: 3.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.922e-06/0.3191, allocations: 0 / 498.1 MB, free: 3.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008235/0.3199, allocations: 171.8 kB / 498.3 MB, free: 3.242 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008407/0.3207, allocations: 346.6 kB / 498.6 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.009e-05/0.3208, allocations: 24 kB / 498.6 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004238/0.3251, allocations: 4.285 MB / 0.4911 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/0.3251, allocations: 4 kB / 0.4911 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003887/0.329, allocations: 1.933 MB / 0.493 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006334/0.3297, allocations: 283.3 kB / 0.4933 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002404/0.3299, allocations: 23.98 kB / 0.4933 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007105/0.3306, allocations: 35.92 kB / 0.4934 GB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/0.3309, allocations: 88.88 kB / 0.4934 GB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.331, allocations: 39.98 kB / 0.4935 GB, free: 11.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00103/0.3321, allocations: 0.6332 MB / 0.4941 GB, free: 11.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3321, allocations: 0 / 0.4941 GB, free: 11.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001484/0.3336, allocations: 348 kB / 0.4944 GB, free: 10.84 MB / 382.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.0007499/0.3343, allocations: 310.9 kB / 0.4947 GB, free: 10.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003469/0.3378, allocations: 1.575 MB / 0.4963 GB, free: 8.934 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3378, allocations: 0 / 0.4963 GB, free: 8.934 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001507/0.3393, allocations: 0.7917 MB / 0.497 GB, free: 8.121 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002525/0.3419, allocations: 494.2 kB / 0.4975 GB, free: 7.652 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004798/0.3467, allocations: 2.457 MB / 0.4999 GB, free: 5.152 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.3477, allocations: 1.134 MB / 0.501 GB, free: 3.988 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003836/0.3481, allocations: 123.3 kB / 0.5011 GB, free: 3.867 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3481, allocations: 0 / 0.5011 GB, free: 3.867 MB / 382.1 MB Notification: Performance of Templates: time 0.189/0.5371, allocations: 31.71 MB / 0.5321 GB, free: 70.33 MB / 382.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.makefile (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)