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.0009521/0.0009521, allocations: 81.17 kB / 19.87 MB, free: 4.621 MB / 18.57 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.001091/0.001091, allocations: 169 kB / 23.27 MB, free: 1.223 MB / 18.57 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.028/1.028, allocations: 177.1 MB / 203.7 MB, free: 5.523 MB / 186.7 MB " [Timeout remaining time 179] 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.03718/0.03718, allocations: 8.62 MB / 268.9 MB, free: 4.777 MB / 250.7 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: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 342.6 MB, free: 6.875 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.044e-05/1.162e-05, allocations: 2.312 kB / 342.6 MB, free: 6.871 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.007048/0.007059, allocations: 10.12 MB / 352.7 MB, free: 12.7 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004583/0.01164, allocations: 3.98 MB / 356.7 MB, free: 8.707 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005119/0.01215, allocations: 71.31 kB / 356.7 MB, free: 8.637 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005474/0.0127, allocations: 297.6 kB / 357 MB, free: 8.344 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001471/0.01417, allocations: 1.029 MB / 358.1 MB, free: 7.309 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001936/0.01611, allocations: 1.227 MB / 359.3 MB, free: 6.078 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005389/0.0215, allocations: 2.725 MB / 362 MB, free: 3.34 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007708/0.02227, allocations: 0.7234 MB / 362.7 MB, free: 2.605 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004558/0.02683, allocations: 1.391 MB / 364.1 MB, free: 1.211 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001041/0.02787, allocations: 0.8256 MB / 364.9 MB, free: 392 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000156/0.02802, allocations: 100 kB / 365 MB, free: 292 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006232/0.02865, allocations: 267.6 kB / 365.3 MB, free: 24 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003324/0.03197, allocations: 414.6 kB / 365.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004025/0.03237, allocations: 458.8 kB / 366.2 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001232/0.0336, allocations: 1.191 MB / 367.3 MB, free: 13.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.03361, allocations: 0 / 367.3 MB, free: 13.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.03361, allocations: 4 kB / 367.3 MB, free: 13.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.03362, allocations: 0 / 367.3 MB, free: 13.97 MB / 298.7 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.005111/0.03873, allocations: 1.659 MB / 369 MB, free: 12.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.03877, allocations: 12.02 kB / 369 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004369/0.0392, allocations: 255.8 kB / 369.3 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00105/0.04025, allocations: 0.8356 MB / 370.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001644/0.04042, allocations: 292.2 kB / 370.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/0.04055, allocations: 100.4 kB / 370.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004313/0.04486, allocations: 1.461 MB / 371.9 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/0.04489, allocations: 8.125 kB / 372 MB, free: 8.953 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.22e-05/0.04497, allocations: 43.94 kB / 372 MB, free: 8.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.346e-05/0.04504, allocations: 57.98 kB / 372.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008729/0.04591, allocations: 461 kB / 372.5 MB, free: 8.402 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01133/0.05724, allocations: 7.301 MB / 379.8 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007653/0.05801, allocations: 433.8 kB / 380.2 MB, free: 436 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002458/0.05825, allocations: 188.5 kB / 380.4 MB, free: 248 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004256/0.06251, allocations: 0.9394 MB / 381.4 MB, free: 15.29 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.06254, allocations: 50.03 kB / 381.4 MB, free: 15.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=78): time 2.494e-06/0.06255, allocations: 0 / 381.4 MB, free: 15.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=83): time 0.006111/0.06866, allocations: 1.592 MB / 383 MB, free: 13.59 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.051e-05/0.06872, allocations: 141.5 kB / 383.1 MB, free: 13.42 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000728/0.06944, allocations: 0.8834 MB / 384 MB, free: 12.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.174e-05/0.0695, allocations: 45.7 kB / 384.1 MB, free: 12.46 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004002/0.0699, allocations: 0.67 MB / 384.7 MB, free: 11.79 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002089/0.07011, allocations: 321.4 kB / 385 MB, free: 11.47 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002973/0.0704, allocations: 264.3 kB / 385.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.07058, allocations: 0.5393 MB / 385.8 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002691/0.07085, allocations: 151.2 kB / 386 MB, free: 10.51 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006222/0.07147, allocations: 0.9849 MB / 387 MB, free: 9.168 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009487/0.07242, allocations: 1.285 MB / 388.3 MB, free: 7.555 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.07243, allocations: 8 kB / 388.3 MB, free: 7.547 MB / 314.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.001235/0.07366, allocations: 1.086 MB / 389.4 MB, free: 6.441 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/0.07369, allocations: 12 kB / 389.4 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.438e-05/0.07372, allocations: 20 kB / 389.4 MB, free: 6.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004356/0.07415, allocations: 255.3 kB / 389.6 MB, free: 6.148 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005041/0.07466, allocations: 283.5 kB / 389.9 MB, free: 5.871 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002214/0.07687, allocations: 4.845 MB / 394.8 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003553/0.07722, allocations: 48.12 kB / 394.8 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.076e-05/0.07729, allocations: 55.98 kB / 394.9 MB, free: 0.668 MB / 314.7 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: 77 * 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 (155): * Single equations (assignments): 152 * 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.0002949/0.07758, allocations: 283 kB / 395.1 MB, free: 388 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.07772, allocations: 139.2 kB / 395.3 MB, free: 248 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00124/0.07896, allocations: 1.021 MB / 396.3 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.07897, allocations: 12 kB / 396.3 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.295e-06/0.07897, allocations: 0 / 396.3 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.07898, allocations: 3.984 kB / 396.3 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001691/0.08067, allocations: 1.463 MB / 397.8 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.08067, allocations: 4 kB / 397.8 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003654/0.08104, allocations: 160 kB / 397.9 MB, free: 13.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003389/0.08138, allocations: 230.8 kB / 398.2 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.158e-05/0.08143, allocations: 23.98 kB / 398.2 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00247/0.0839, allocations: 4.821 MB / 403 MB, free: 8.152 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.0839, allocations: 7.938 kB / 403 MB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.08499, allocations: 1.066 MB / 404.1 MB, free: 7.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002253/0.08521, allocations: 187.1 kB / 404.3 MB, free: 6.836 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.904e-05/0.08528, allocations: 19.98 kB / 404.3 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.08554, allocations: 27.94 kB / 404.3 MB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.08566, allocations: 88.92 kB / 404.4 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.457e-05/0.0857, allocations: 27.97 kB / 404.4 MB, free: 6.676 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003022/0.08601, allocations: 493.9 kB / 404.9 MB, free: 6.184 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.08601, allocations: 0 / 404.9 MB, free: 6.184 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007381/0.08674, allocations: 319.9 kB / 405.2 MB, free: 5.871 MB / 330.7 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 (81): * Single equations (assignments): 76 * 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.0002651/0.08701, allocations: 198.9 kB / 405.4 MB, free: 5.668 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009205/0.08793, allocations: 1.007 MB / 406.4 MB, free: 4.625 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.08793, allocations: 0 / 406.4 MB, free: 4.625 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005268/0.08846, allocations: 0.6633 MB / 407.1 MB, free: 3.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.08949, allocations: 451.1 kB / 407.5 MB, free: 3.504 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0025/0.09199, allocations: 2.092 MB / 409.6 MB, free: 1.348 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001599/0.09215, allocations: 250.8 kB / 409.9 MB, free: 1.078 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004033/0.09256, allocations: 198.4 kB / 410 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006302/0.09319, allocations: 485.8 kB / 410.5 MB, free: 420 kB / 330.7 MB Notification: Performance of SimCode: time 7.72e-07/0.09319, allocations: 0 / 410.5 MB, free: 420 kB / 330.7 MB Notification: Performance of Templates: time 0.1412/0.2344, allocations: 21.47 MB / 432 MB, free: 56.99 MB / 330.7 MB " [Timeout remaining time 660] 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=240 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.573700222186744]