Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.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: "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_01_gen",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_01_gen",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001206, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009669/0.0009669, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.247/1.247, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1864/0.1864, allocations: 22.34 MB / 312.7 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 67.89 kB / 380.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2263, allocations: 54.94 MB / 435.9 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen): time 0.002463/0.2288, allocations: 1.762 MB / 437.6 MB, free: 38.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.2309, allocations: 1.742 MB / 439.4 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003226/0.2312, allocations: 13.12 kB / 439.4 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005235/0.2318, allocations: 205.7 kB / 439.6 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004573/0.2323, allocations: 256.2 kB / 439.9 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006033/0.2329, allocations: 404.6 kB / 440.2 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007101/0.2336, allocations: 1.188 MB / 441.4 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001897/0.2338, allocations: 122.9 kB / 441.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003463/0.2342, allocations: 489.1 kB / 442 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004382/0.2346, allocations: 0.5253 MB / 442.6 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.2347, allocations: 59.62 kB / 442.6 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.191e-05/0.2348, allocations: 59.09 kB / 442.7 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002016/0.235, allocations: 259.1 kB / 442.9 MB, free: 35.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001838/0.2352, allocations: 300.6 kB / 443.2 MB, free: 35.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003847/0.2356, allocations: 0.6318 MB / 443.9 MB, free: 35.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2356, allocations: 0 / 443.9 MB, free: 35.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2356, allocations: 0 / 443.9 MB, free: 35.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.2356, allocations: 0 / 443.9 MB, free: 35.34 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.004017/0.2396, allocations: 1.523 MB / 445.4 MB, free: 34.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.2397, allocations: 8.938 kB / 445.4 MB, free: 34.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.259e-05/0.2397, allocations: 66.11 kB / 445.5 MB, free: 34.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.2399, allocations: 76.12 kB / 445.5 MB, free: 34.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002183/0.242, allocations: 0.8941 MB / 446.4 MB, free: 34.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.2421, allocations: 19.81 kB / 446.4 MB, free: 34.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-05/0.2421, allocations: 46.95 kB / 446.5 MB, free: 34.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004903/0.2426, allocations: 375.7 kB / 446.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.2427, allocations: 0 / 446.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.189e-05/0.2427, allocations: 10.62 kB / 446.9 MB, free: 33.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.2427, allocations: 6.125 kB / 446.9 MB, free: 33.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006351/0.2433, allocations: 468.8 kB / 447.3 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001764/0.2451, allocations: 1.263 MB / 448.6 MB, free: 33.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001573/0.2467, allocations: 0.7944 MB / 449.4 MB, free: 32.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003091/0.247, allocations: 259.1 kB / 449.6 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.2471, allocations: 6 kB / 449.6 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.452e-05/0.2471, allocations: 46.25 kB / 449.7 MB, free: 32.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.563e-06/0.2471, allocations: 0 / 449.7 MB, free: 32.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002777/0.2499, allocations: 1.502 MB / 451.2 MB, free: 32.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.052e-05/0.2499, allocations: 57.34 kB / 451.2 MB, free: 32.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00224/0.2521, allocations: 1.04 MB / 452.3 MB, free: 31.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/0.2522, allocations: 35.86 kB / 452.3 MB, free: 31.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.2523, allocations: 294.7 kB / 452.6 MB, free: 31.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.2524, allocations: 179.5 kB / 452.8 MB, free: 31.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.2526, allocations: 82.75 kB / 452.9 MB, free: 31.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.315e-05/0.2526, allocations: 327.1 kB / 453.2 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003101/0.2529, allocations: 218.4 kB / 453.4 MB, free: 30.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002995/0.2532, allocations: 225.2 kB / 453.6 MB, free: 30.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003813/0.2571, allocations: 1.415 MB / 455 MB, free: 30.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.2571, allocations: 0 / 455 MB, free: 30.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001437/0.2585, allocations: 0.9017 MB / 455.9 MB, free: 30.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.2585, allocations: 5.406 kB / 455.9 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.2586, allocations: 3.938 kB / 455.9 MB, free: 30.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005644/0.2591, allocations: 215.5 kB / 456.2 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003075/0.2594, allocations: 74.81 kB / 456.2 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003664/0.2631, allocations: 6.42 MB / 462.6 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001083/0.2642, allocations: 193.8 kB / 462.8 MB, free: 24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.322e-05/0.2643, allocations: 14.09 kB / 462.8 MB, free: 23.99 MB / 350.1 MB Warning: Assuming fixed start value for the following 15 variables: Sf4.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] S4.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P4.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] C4.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] C4.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] C3.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] C3.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P3.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] S3.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] C2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] S2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] C1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] S1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002827/0.2645, allocations: 251.8 kB / 463.1 MB, free: 23.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.2647, allocations: 75.91 kB / 463.2 MB, free: 23.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001673/0.2648, allocations: 107.2 kB / 463.3 MB, free: 23.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.2648, allocations: 5.219 kB / 463.3 MB, free: 23.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.888e-06/0.2649, allocations: 6.531 kB / 463.3 MB, free: 23.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.2649, allocations: 6.797 kB / 463.3 MB, free: 23.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000659/0.2655, allocations: 0.6274 MB / 463.9 MB, free: 23.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.2655, allocations: 0 / 463.9 MB, free: 23.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003702/0.2659, allocations: 58.56 kB / 464 MB, free: 23.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005505/0.2665, allocations: 224 kB / 464.2 MB, free: 23.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.001e-05/0.2665, allocations: 13.92 kB / 464.2 MB, free: 23.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003613/0.2701, allocations: 6.414 MB / 470.6 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2702, allocations: 8 kB / 470.6 MB, free: 17.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001767/0.2719, allocations: 1.191 MB / 471.8 MB, free: 16.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/0.2721, allocations: 169.6 kB / 472 MB, free: 16.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.964e-05/0.2722, allocations: 17.5 kB / 472 MB, free: 16.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/0.2733, allocations: 153 kB / 472.2 MB, free: 16.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.2734, allocations: 38.72 kB / 472.2 MB, free: 16.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.958e-05/0.2734, allocations: 9.406 kB / 472.2 MB, free: 16.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002212/0.2757, allocations: 0.8269 MB / 473 MB, free: 16.37 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2757, allocations: 1.75 kB / 473 MB, free: 16.37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004876/0.2762, allocations: 145.3 kB / 473.2 MB, free: 16.35 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 15 (P1.x_scaled[1],S1.x_scaled[1],C1.x_scaled[1],S2.x_scaled[1],C2.x_scaled[1],P2.x_scaled[1],S3.x_scaled[1],P3.x_scaled[1],C3.x_scaled[1],C3.x_scaled[2],C4.x_scaled[1],C4.x_scaled[2],P4.x_scaled[1],S4.x_scaled[1],Sf4.x_scaled[1]) * 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 (36): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00197/0.2781, allocations: 1.753 MB / 474.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001488/0.2796, allocations: 1.132 MB / 476.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2797, allocations: 3.938 kB / 476.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008126/0.2805, allocations: 0.7732 MB / 476.8 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006534/0.2811, allocations: 136.1 kB / 477 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01328/0.2944, allocations: 7.787 MB / 484.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003387/0.2948, allocations: 0.9826 MB / 485.7 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003036/0.2951, allocations: 152 kB / 485.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002594/0.2954, allocations: 240.1 kB / 486.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2954, allocations: 0 / 486.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.717/3.012, allocations: 15.06 MB / 0.4894 GB, free: 10.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/14.68, allocations: 9.219 kB / 0.4894 GB, free: 10.89 MB / 366.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_01_gen_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_01_gen.fmu > AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe 2>&1)