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: translateModel(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen") translateModel(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000818/0.0008181, allocations: 99.27 kB / 16.02 MB, free: 76 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.0009595/0.0009595, allocations: 180.2 kB / 16.92 MB, free: 6.918 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.301/1.301, allocations: 223.3 MB / 241 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2019/0.2019, allocations: 22.35 MB / 314.4 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003337/0.0003339, allocations: 8 kB / 383.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2622, allocations: 55.98 MB / 439.2 MB, free: 39.3 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.001383/0.2636, allocations: 1.432 MB / 440.7 MB, free: 38.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001807/0.2654, allocations: 1.723 MB / 442.4 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001686/0.2656, allocations: 2.375 kB / 442.4 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004998/0.2661, allocations: 186 kB / 442.6 MB, free: 36.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004166/0.2665, allocations: 233.1 kB / 442.8 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005519/0.2671, allocations: 382.6 kB / 443.2 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008078/0.2679, allocations: 1.149 MB / 444.3 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001917/0.2681, allocations: 112.3 kB / 444.4 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004178/0.2685, allocations: 426.9 kB / 444.9 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005045/0.2691, allocations: 0.491 MB / 445.3 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.806e-05/0.2692, allocations: 25.56 kB / 445.4 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.132e-05/0.2692, allocations: 28.84 kB / 445.4 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002118/0.2694, allocations: 229.2 kB / 445.6 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001872/0.2696, allocations: 289.2 kB / 445.9 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003235/0.27, allocations: 486.4 kB / 446.4 MB, free: 35.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.27, allocations: 0 / 446.4 MB, free: 35.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.27, allocations: 0 / 446.4 MB, free: 35.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.27, allocations: 0 / 446.4 MB, free: 35.54 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.00395/0.274, allocations: 1.432 MB / 447.8 MB, free: 34.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.274, allocations: 12.28 kB / 447.8 MB, free: 34.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.2741, allocations: 75.28 kB / 447.9 MB, free: 34.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0022/0.2764, allocations: 0.9101 MB / 448.8 MB, free: 34.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.2764, allocations: 20.75 kB / 448.8 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.442e-05/0.2765, allocations: 32.25 kB / 448.9 MB, free: 34.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005673/0.277, allocations: 372.4 kB / 449.2 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.2771, allocations: 7.312 kB / 449.2 MB, free: 34.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.909e-05/0.2771, allocations: 15.94 kB / 449.2 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.2771, allocations: 7.375 kB / 449.3 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006359/0.2778, allocations: 461.7 kB / 449.7 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.2797, allocations: 1.273 MB / 451 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001581/0.2813, allocations: 0.8077 MB / 451.8 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003121/0.2816, allocations: 260.2 kB / 452 MB, free: 33.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.2816, allocations: 4.344 kB / 452 MB, free: 33.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.555e-05/0.2817, allocations: 37.62 kB / 452.1 MB, free: 33.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.933e-06/0.2817, allocations: 0 / 452.1 MB, free: 33.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002989/0.2847, allocations: 1.518 MB / 453.6 MB, free: 32.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.478e-05/0.2847, allocations: 57.03 kB / 453.7 MB, free: 32.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002451/0.2872, allocations: 1.051 MB / 454.7 MB, free: 32.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.724e-05/0.2872, allocations: 35.36 kB / 454.7 MB, free: 32.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.2874, allocations: 295.5 kB / 455 MB, free: 31.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.2875, allocations: 177.6 kB / 455.2 MB, free: 31.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.431e-05/0.2876, allocations: 53.81 kB / 455.3 MB, free: 31.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.717e-05/0.2876, allocations: 324.1 kB / 455.6 MB, free: 31.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002967/0.2879, allocations: 221.8 kB / 455.8 MB, free: 31.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003148/0.2883, allocations: 228.4 kB / 456 MB, free: 31.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004151/0.2924, allocations: 1.437 MB / 457.4 MB, free: 30.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.2925, allocations: 0 / 457.4 MB, free: 30.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001667/0.2941, allocations: 0.9002 MB / 458.3 MB, free: 30.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.2942, allocations: 6.062 kB / 458.4 MB, free: 30.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.2942, allocations: 0.6562 kB / 458.4 MB, free: 30.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006266/0.2948, allocations: 218.8 kB / 458.6 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003385/0.2952, allocations: 72.58 kB / 458.6 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004008/0.2992, allocations: 6.014 MB / 464.7 MB, free: 24.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001274/0.3005, allocations: 192.3 kB / 464.8 MB, free: 24.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.193e-05/0.3005, allocations: 14.5 kB / 464.9 MB, free: 24.73 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.0003832/0.3009, allocations: 256 kB / 465.1 MB, free: 24.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.301, allocations: 70.75 kB / 465.2 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002045/0.3013, allocations: 100.7 kB / 465.3 MB, free: 24.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3013, allocations: 4.188 kB / 465.3 MB, free: 24.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.3013, allocations: 2.906 kB / 465.3 MB, free: 24.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.3013, allocations: 7.516 kB / 465.3 MB, free: 24.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007319/0.302, allocations: 0.6342 MB / 465.9 MB, free: 24.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.302, allocations: 0.6562 kB / 465.9 MB, free: 24.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003783/0.3024, allocations: 58.02 kB / 466 MB, free: 24.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005808/0.303, allocations: 220 kB / 466.2 MB, free: 24.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.6e-05/0.3031, allocations: 26.72 kB / 466.2 MB, free: 24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003756/0.3068, allocations: 6.004 MB / 472.2 MB, free: 18.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3069, allocations: 6.281 kB / 472.2 MB, free: 18.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002009/0.3089, allocations: 1.185 MB / 473.4 MB, free: 17.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001903/0.3091, allocations: 171.2 kB / 473.6 MB, free: 17.78 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.671e-05/0.3092, allocations: 17.09 kB / 473.6 MB, free: 17.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/0.3103, allocations: 160.6 kB / 473.8 MB, free: 17.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.3105, allocations: 43.17 kB / 473.8 MB, free: 17.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.003e-05/0.3105, allocations: 8.516 kB / 473.8 MB, free: 17.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002407/0.3129, allocations: 0.8387 MB / 474.6 MB, free: 17.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3129, allocations: 4 kB / 474.6 MB, free: 17.51 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000637/0.3136, allocations: 149 kB / 474.8 MB, free: 17.48 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.0001323/0.3137, allocations: 116.9 kB / 474.9 MB, free: 17.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00142/0.3151, allocations: 1.068 MB / 476 MB, free: 16.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3151, allocations: 3.938 kB / 476 MB, free: 16.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008679/0.316, allocations: 0.7638 MB / 476.7 MB, free: 16.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007374/0.3168, allocations: 125.5 kB / 476.9 MB, free: 16.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00231/0.3191, allocations: 1.786 MB / 478.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000438/0.3195, allocations: 0.9856 MB / 479.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000185/0.3197, allocations: 43.62 kB / 479.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3197, allocations: 0 / 479.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of Templates: time 0.01774/0.3375, allocations: 16.99 MB / 496.7 MB, free: 2.082 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.makefile (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 & ./AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe 2>&1)