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.0009363/0.0009363, allocations: 80.48 kB / 19.93 MB, free: 4.633 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.001048/0.001048, allocations: 173.9 kB / 23.21 MB, free: 1.352 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 0.8837/0.8837, allocations: 177.1 MB / 203.5 MB, free: 5.73 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.03311/0.03311, allocations: 8.608 MB / 268.5 MB, free: 5.113 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.733e-06/1.733e-06, allocations: 0 / 397.5 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.681e-05/2.854e-05, allocations: 6.281 kB / 397.5 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.01664/0.01667, allocations: 23.08 MB / 420.6 MB, free: 9.758 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.006951/0.02362, allocations: 6.344 MB / 427 MB, free: 3.395 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001006/0.02463, allocations: 75.25 kB / 427 MB, free: 3.32 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009432/0.02557, allocations: 436.7 kB / 427.5 MB, free: 2.891 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002164/0.02773, allocations: 1.211 MB / 428.7 MB, free: 1.672 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002469/0.0302, allocations: 1.397 MB / 430.1 MB, free: 288 kB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0024/0.0326, allocations: 2.678 MB / 432.8 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008196/0.03342, allocations: 0.6994 MB / 433.5 MB, free: 12.88 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001815/0.03524, allocations: 1.43 MB / 434.9 MB, free: 11.45 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008362/0.03607, allocations: 0.849 MB / 435.7 MB, free: 10.59 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.03619, allocations: 100 kB / 435.8 MB, free: 10.5 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007981/0.03699, allocations: 419.2 kB / 436.2 MB, free: 10.09 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002795/0.03727, allocations: 418.5 kB / 436.7 MB, free: 9.676 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003341/0.0376, allocations: 450.9 kB / 437.1 MB, free: 9.234 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001728/0.03933, allocations: 1.748 MB / 438.8 MB, free: 7.48 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.654e-06/0.03933, allocations: 0 / 438.8 MB, free: 7.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.03933, allocations: 0 / 438.8 MB, free: 7.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.617e-05/0.03935, allocations: 0 / 438.8 MB, free: 7.48 MB / 410.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.001998/0.04135, allocations: 1.574 MB / 440.4 MB, free: 5.871 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.04138, allocations: 8.031 kB / 440.4 MB, free: 5.863 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002794/0.04166, allocations: 164 kB / 440.6 MB, free: 5.703 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.04286, allocations: 0.7937 MB / 441.4 MB, free: 4.879 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/0.04302, allocations: 308.1 kB / 441.7 MB, free: 4.531 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.872e-05/0.04312, allocations: 88.38 kB / 441.8 MB, free: 4.445 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.04453, allocations: 1.766 MB / 443.5 MB, free: 2.449 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.453e-05/0.04456, allocations: 4.125 kB / 443.5 MB, free: 2.445 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.123e-05/0.04463, allocations: 51.92 kB / 443.6 MB, free: 2.395 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.798e-05/0.04468, allocations: 53.98 kB / 443.6 MB, free: 2.344 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.04581, allocations: 1.073 MB / 444.7 MB, free: 1.266 MB / 410.7 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.1569/0.2027, allocations: 5.989 MB / 450.7 MB, free: 84.31 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009888/0.2037, allocations: 0.7503 MB / 451.5 MB, free: 84.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003707/0.2041, allocations: 416.4 kB / 451.9 MB, free: 84.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001194/0.2052, allocations: 1.026 MB / 452.9 MB, free: 83.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.2053, allocations: 49 kB / 452.9 MB, free: 83.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 2.485e-06/0.2053, allocations: 1.031 kB / 452.9 MB, free: 83.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=83): time 0.003547/0.2088, allocations: 2.807 MB / 455.7 MB, free: 82.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/0.2089, allocations: 139.5 kB / 455.9 MB, free: 82.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005964/0.2095, allocations: 0.8887 MB / 456.8 MB, free: 81.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.126e-05/0.2095, allocations: 44.05 kB / 456.8 MB, free: 81.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/0.2097, allocations: 0.6151 MB / 457.4 MB, free: 81.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.2098, allocations: 302.5 kB / 457.7 MB, free: 81.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001862/0.21, allocations: 257.5 kB / 458 MB, free: 81.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.375e-05/0.21, allocations: 356.1 kB / 458.3 MB, free: 80.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003955/0.2104, allocations: 429.8 kB / 458.7 MB, free: 80.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005402/0.211, allocations: 1.001 MB / 459.7 MB, free: 79.69 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004964/0.2159, allocations: 3.031 MB / 462.8 MB, free: 78.45 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.216, allocations: 6.344 kB / 462.8 MB, free: 78.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.001678/0.2176, allocations: 1.608 MB / 464.4 MB, free: 77.81 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.2177, allocations: 11.84 kB / 464.4 MB, free: 77.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.2177, allocations: 19.16 kB / 464.4 MB, free: 77.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005122/0.2182, allocations: 374.8 kB / 464.8 MB, free: 77.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004889/0.2187, allocations: 278.8 kB / 465.1 MB, free: 77.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001914/0.2206, allocations: 4.035 MB / 469.1 MB, free: 74.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006011/0.2212, allocations: 52.94 kB / 469.1 MB, free: 74.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.541e-05/0.2213, allocations: 67.69 kB / 469.2 MB, free: 74.12 MB / 410.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: 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.000562/0.2218, allocations: 347.9 kB / 469.5 MB, free: 73.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.2219, allocations: 118.5 kB / 469.7 MB, free: 73.81 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001704/0.2236, allocations: 1.52 MB / 471.2 MB, free: 73.21 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/0.2237, allocations: 9.438 kB / 471.2 MB, free: 73.21 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.2237, allocations: 0 / 471.2 MB, free: 73.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.2237, allocations: 3.422 kB / 471.2 MB, free: 73.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002277/0.2259, allocations: 2.165 MB / 473.4 MB, free: 72.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.2259, allocations: 2.469 kB / 473.4 MB, free: 72.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004027/0.2264, allocations: 171.3 kB / 473.5 MB, free: 72.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004319/0.2268, allocations: 340 kB / 473.9 MB, free: 72.11 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.187e-05/0.2268, allocations: 29.11 kB / 473.9 MB, free: 72.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001756/0.2286, allocations: 4.029 MB / 477.9 MB, free: 68.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.2286, allocations: 5.734 kB / 477.9 MB, free: 68.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002033/0.2306, allocations: 1.927 MB / 479.9 MB, free: 67.69 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003689/0.231, allocations: 207 kB / 480.1 MB, free: 67.58 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.401e-05/0.2311, allocations: 18.47 kB / 480.1 MB, free: 67.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002751/0.2313, allocations: 34.27 kB / 480.1 MB, free: 67.56 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.2315, allocations: 92.62 kB / 480.2 MB, free: 67.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.63e-05/0.2315, allocations: 29.83 kB / 480.2 MB, free: 67.54 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000487/0.232, allocations: 0.5631 MB / 480.8 MB, free: 67.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.232, allocations: 0 / 480.8 MB, free: 67.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00106/0.2331, allocations: 356.2 kB / 481.1 MB, free: 67.23 MB / 410.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 (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.0004652/0.2335, allocations: 282.8 kB / 481.4 MB, free: 67.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.2351, allocations: 1.338 MB / 482.7 MB, free: 66.51 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.2351, allocations: 0 / 482.7 MB, free: 66.51 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006675/0.2358, allocations: 0.7621 MB / 483.5 MB, free: 66.11 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.2369, allocations: 437.1 kB / 483.9 MB, free: 65.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002812/0.2398, allocations: 2.323 MB / 486.3 MB, free: 64.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005915/0.2403, allocations: 0.543 MB / 486.8 MB, free: 64.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000275/0.2406, allocations: 112.7 kB / 486.9 MB, free: 64.63 MB / 410.7 MB Notification: Performance of SimCode: time 1.613e-06/0.2406, allocations: 0 / 486.9 MB, free: 64.63 MB / 410.7 MB Notification: Performance of Templates: time 0.03606/0.2767, allocations: 31.57 MB / 0.5063 GB, free: 46.26 MB / 410.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=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.68922255653888] Failed to read output from testmodel.py, exit status != 0: 0.28377651050686836 0.292558302 0.251811068 Calling exit ...