Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004741/0.004741, allocations: 101.4 kB / 15.88 MB, free: 5.867 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.001156/0.001156, allocations: 188.3 kB / 16.78 MB, free: 5.809 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.294/1.294, allocations: 222.9 MB / 240.5 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2008/0.2008, allocations: 22.37 MB / 313 MB, free: 12.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 67.91 kB / 380.8 MB, free: 11.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2475, allocations: 54.94 MB / 435.7 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003394/0.2509, allocations: 3.503 MB / 439.2 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.2521, allocations: 0.9567 MB / 440.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001525/0.2523, allocations: 6.969 kB / 440.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001949/0.2525, allocations: 77.31 kB / 440.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000295/0.2528, allocations: 236.1 kB / 440.5 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003782/0.2532, allocations: 174.5 kB / 440.7 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008091/0.254, allocations: 1.5 MB / 442.2 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006081/0.2546, allocations: 0.7411 MB / 442.9 MB, free: 35.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002986/0.2549, allocations: 404.5 kB / 443.3 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004652/0.2554, allocations: 0.5684 MB / 443.9 MB, free: 34.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.2555, allocations: 68.88 kB / 443.9 MB, free: 34.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001438/0.2557, allocations: 67.81 kB / 444 MB, free: 34.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002046/0.2559, allocations: 332.3 kB / 444.3 MB, free: 34.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003438/0.2562, allocations: 485.4 kB / 444.8 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005976/0.2568, allocations: 1.17 MB / 446 MB, free: 34.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2568, allocations: 8 kB / 446 MB, free: 34.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.2568, allocations: 0 / 446 MB, free: 34.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.2569, allocations: 0 / 446 MB, free: 34.15 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.002169/0.259, allocations: 1.286 MB / 447.3 MB, free: 33.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.2591, allocations: 16.31 kB / 447.3 MB, free: 33.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001499/0.2592, allocations: 87.38 kB / 447.4 MB, free: 33.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006501/0.2599, allocations: 0.5602 MB / 447.9 MB, free: 32.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.529e-05/0.2599, allocations: 82.27 kB / 448 MB, free: 32.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.2601, allocations: 80.66 kB / 448.1 MB, free: 32.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/0.2613, allocations: 0.9321 MB / 449 MB, free: 32.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.2613, allocations: 0 / 449 MB, free: 32.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.197e-05/0.2614, allocations: 37.16 kB / 449 MB, free: 32.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.2614, allocations: 17.53 kB / 449.1 MB, free: 32.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.2626, allocations: 0.8074 MB / 449.9 MB, free: 32.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004505/0.2671, allocations: 3.956 MB / 453.8 MB, free: 29.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002402/0.2695, allocations: 1.031 MB / 454.9 MB, free: 29.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005597/0.2701, allocations: 421.5 kB / 455.3 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.815e-05/0.2701, allocations: 14.92 kB / 455.3 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.662e-05/0.2701, allocations: 37.91 kB / 455.3 MB, free: 29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 1.874e-06/0.2701, allocations: 0 / 455.3 MB, free: 29 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.003633/0.2738, allocations: 2.358 MB / 457.7 MB, free: 27.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.603e-05/0.2738, allocations: 61.59 kB / 457.7 MB, free: 27.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004489/0.2743, allocations: 413.1 kB / 458.1 MB, free: 27.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.989e-05/0.2743, allocations: 36.27 kB / 458.2 MB, free: 27.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.2745, allocations: 333.1 kB / 458.5 MB, free: 26.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.2747, allocations: 226.5 kB / 458.7 MB, free: 26.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002206/0.2749, allocations: 131.1 kB / 458.8 MB, free: 26.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.881e-05/0.275, allocations: 366.4 kB / 459.2 MB, free: 26.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006681/0.2757, allocations: 453.2 kB / 459.6 MB, free: 26.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006851/0.2764, allocations: 0.4901 MB / 460.1 MB, free: 25.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007008/0.2834, allocations: 2.357 MB / 462.5 MB, free: 25.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.2834, allocations: 1.219 kB / 462.5 MB, free: 25.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002307/0.2857, allocations: 1.335 MB / 463.8 MB, free: 24.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.2858, allocations: 10.2 kB / 463.8 MB, free: 24.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.2858, allocations: 1.25 kB / 463.8 MB, free: 24.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/0.2868, allocations: 348.4 kB / 464.2 MB, free: 24.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008523/0.2877, allocations: 190.7 kB / 464.4 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007594/0.2953, allocations: 14.07 MB / 478.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006919/0.296, allocations: 83.03 kB / 478.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.064e-05/0.2961, allocations: 21.91 kB / 478.5 MB, free: 10.43 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.Tfo:VARIABLE(min = 0.0 start = CH.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004701/0.2965, allocations: 285.7 kB / 478.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.2967, allocations: 53.47 kB / 478.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001965/0.2986, allocations: 1.135 MB / 480 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.962e-06/0.2987, allocations: 13.44 kB / 480 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2987, allocations: 2.75 kB / 480 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.2987, allocations: 4.797 kB / 480 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003398/0.3021, allocations: 2.119 MB / 482.1 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.3021, allocations: 6.031 kB / 482.1 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009725/0.3031, allocations: 170.4 kB / 482.3 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007623/0.3039, allocations: 307.2 kB / 482.6 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.576e-05/0.3039, allocations: 39.11 kB / 482.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008022/0.312, allocations: 13.66 MB / 496.3 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.312, allocations: 6.375 kB / 496.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002865/0.3149, allocations: 1.587 MB / 497.9 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002082/0.3151, allocations: 150 kB / 498.1 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/0.3152, allocations: 36.89 kB / 498.1 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004488/0.3157, allocations: 34.5 kB / 498.1 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001746/0.3159, allocations: 58.25 kB / 498.2 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/0.316, allocations: 18.33 kB / 498.2 MB, free: 9.809 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003611/0.3163, allocations: 295.4 kB / 498.5 MB, free: 9.656 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3164, allocations: 0 / 498.5 MB, free: 9.656 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00103/0.3174, allocations: 298.4 kB / 498.8 MB, free: 9.598 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 22 (CH.Tfo,CH.Ec,pipeline.fluidStream.T[1],pipeline.fluidStream.T[2],pipeline.fluidStream.T[3],pipeline.fluidStream.T[4],pipeline.fluidStream.T[5],pipeline.wall.wall.T[1,1],pipeline.wall.wall.T[1,2],pipeline.wall.wall.T[1,3],pipeline.wall.wall.T[2,1],pipeline.wall.wall.T[2,2],pipeline.wall.wall.T[2,3],pipeline.wall.wall.T[3,1],pipeline.wall.wall.T[3,2],pipeline.wall.wall.T[3,3],pipeline.wall.wall.T[4,1],pipeline.wall.wall.T[4,2],pipeline.wall.wall.T[4,3],pipeline.wall.wall.T[5,1],pipeline.wall.wall.T[5,2],pipeline.wall.wall.T[5,3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002014/0.3176, allocations: 148.5 kB / 498.9 MB, free: 9.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002578/0.3202, allocations: 2.029 MB / 0.4892 GB, free: 8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3202, allocations: 1.219 kB / 0.4892 GB, free: 8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001691/0.3219, allocations: 1.559 MB / 0.4907 GB, free: 6.684 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007854/0.3227, allocations: 163.1 kB / 0.4909 GB, free: 6.629 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005322/0.328, allocations: 3.417 MB / 0.4942 GB, free: 3.754 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005952/0.3286, allocations: 1.016 MB / 0.4952 GB, free: 2.707 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002633/0.3289, allocations: 43.44 kB / 0.4953 GB, free: 2.668 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3289, allocations: 0 / 0.4953 GB, free: 2.668 MB / 366.1 MB Notification: Performance of Templates: time 0.03444/0.3634, allocations: 35.79 MB / 0.5302 GB, free: 14.88 MB / 414.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)