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.0008772/0.0008773, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.004986/0.004986, allocations: 168.6 kB / 16.26 MB, free: 6.648 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.248/1.248, allocations: 223.3 MB / 240.3 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1758/0.1758, allocations: 22.36 MB / 313.8 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002698/0.0002699, allocations: 8 kB / 382.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2186/0.2189, allocations: 55.99 MB / 438.6 MB, free: 39.41 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.001276/0.2202, allocations: 1.423 MB / 440 MB, free: 38.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001749/0.222, allocations: 1.73 MB / 441.7 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001976/0.2222, allocations: 2.875 kB / 441.7 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004163/0.2226, allocations: 183.2 kB / 441.9 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004242/0.2231, allocations: 231.5 kB / 442.1 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000527/0.2236, allocations: 382.4 kB / 442.5 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008288/0.2245, allocations: 1.149 MB / 443.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.2246, allocations: 103.1 kB / 443.8 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004368/0.2251, allocations: 434.8 kB / 444.2 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004778/0.2256, allocations: 499.6 kB / 444.7 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000121/0.2257, allocations: 26.56 kB / 444.7 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.72e-05/0.2258, allocations: 29.72 kB / 444.7 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001898/0.226, allocations: 232.6 kB / 445 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000192/0.2262, allocations: 284.4 kB / 445.2 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003583/0.2265, allocations: 0.6031 MB / 445.8 MB, free: 35.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.2265, allocations: 0 / 445.8 MB, free: 35.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2266, allocations: 3.938 kB / 445.9 MB, free: 35.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.497e-06/0.2266, allocations: 7.031 kB / 445.9 MB, free: 35.56 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.003965/0.2305, allocations: 1.436 MB / 447.3 MB, free: 34.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.2306, allocations: 12.66 kB / 447.3 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.2307, allocations: 77.97 kB / 447.4 MB, free: 34.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002174/0.2329, allocations: 0.9051 MB / 448.3 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.2329, allocations: 19.31 kB / 448.3 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.958e-05/0.233, allocations: 34.12 kB / 448.3 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005186/0.2335, allocations: 372.8 kB / 448.7 MB, free: 34.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.2335, allocations: 6.75 kB / 448.7 MB, free: 34.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.446e-05/0.2336, allocations: 11.03 kB / 448.7 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.2336, allocations: 5.656 kB / 448.7 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006536/0.2343, allocations: 474.1 kB / 449.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001804/0.2361, allocations: 1.267 MB / 450.5 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.2377, allocations: 0.7976 MB / 451.3 MB, free: 33.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000316/0.238, allocations: 267.3 kB / 451.5 MB, free: 33.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.238, allocations: 5.781 kB / 451.5 MB, free: 33.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.62e-05/0.2381, allocations: 37.69 kB / 451.6 MB, free: 33.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.553e-06/0.2381, allocations: 0 / 451.6 MB, free: 33.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002853/0.2409, allocations: 1.51 MB / 453.1 MB, free: 32.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.993e-05/0.241, allocations: 56.94 kB / 453.1 MB, free: 32.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002259/0.2432, allocations: 1.057 MB / 454.2 MB, free: 32.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.298e-05/0.2433, allocations: 35.95 kB / 454.2 MB, free: 32.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.2434, allocations: 296.4 kB / 454.5 MB, free: 31.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.2435, allocations: 176.8 kB / 454.7 MB, free: 31.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.581e-05/0.2436, allocations: 53.78 kB / 454.7 MB, free: 31.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.166e-05/0.2436, allocations: 325.9 kB / 455 MB, free: 31.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003243/0.244, allocations: 217.2 kB / 455.3 MB, free: 31.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003138/0.2443, allocations: 223.3 kB / 455.5 MB, free: 31.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003959/0.2483, allocations: 1.443 MB / 456.9 MB, free: 30.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2483, allocations: 0 / 456.9 MB, free: 30.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001495/0.2498, allocations: 0.8927 MB / 457.8 MB, free: 30.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.2498, allocations: 5.062 kB / 457.8 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.2498, allocations: 4.609 kB / 457.8 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005966/0.2504, allocations: 216.2 kB / 458 MB, free: 30.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003219/0.2507, allocations: 74.72 kB / 458.1 MB, free: 30.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003553/0.2543, allocations: 6.018 MB / 464.1 MB, free: 24.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.2554, allocations: 188.8 kB / 464.3 MB, free: 24.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.37e-05/0.2555, allocations: 17.97 kB / 464.3 MB, free: 24.75 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.0002846/0.2558, allocations: 257 kB / 464.6 MB, free: 24.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.2559, allocations: 70.69 kB / 464.6 MB, free: 24.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002018/0.2561, allocations: 99.2 kB / 464.7 MB, free: 24.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.2561, allocations: 9.219 kB / 464.8 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/0.2561, allocations: 2.734 kB / 464.8 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.2561, allocations: 11.06 kB / 464.8 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006706/0.2568, allocations: 0.6349 MB / 465.4 MB, free: 24.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.2568, allocations: 0.7969 kB / 465.4 MB, free: 24.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003678/0.2572, allocations: 58.03 kB / 465.5 MB, free: 24.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005837/0.2578, allocations: 216.6 kB / 465.7 MB, free: 24.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.284e-05/0.2578, allocations: 16.86 kB / 465.7 MB, free: 24.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003437/0.2613, allocations: 6.002 MB / 471.7 MB, free: 18.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.2613, allocations: 8.938 kB / 471.7 MB, free: 18.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001809/0.2631, allocations: 1.186 MB / 472.9 MB, free: 17.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001393/0.2633, allocations: 174.1 kB / 473.1 MB, free: 17.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.448e-05/0.2634, allocations: 17.33 kB / 473.1 MB, free: 17.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.2645, allocations: 161 kB / 473.2 MB, free: 17.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.391e-05/0.2646, allocations: 34.52 kB / 473.3 MB, free: 17.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.828e-05/0.2646, allocations: 13.48 kB / 473.3 MB, free: 17.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002282/0.2669, allocations: 0.8413 MB / 474.1 MB, free: 17.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2669, allocations: 0 / 474.1 MB, free: 17.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004901/0.2674, allocations: 147.8 kB / 474.3 MB, free: 17.52 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.0001083/0.2676, allocations: 126.3 kB / 474.4 MB, free: 17.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001319/0.2689, allocations: 1.069 MB / 475.5 MB, free: 16.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2689, allocations: 0 / 475.5 MB, free: 16.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008293/0.2697, allocations: 0.7684 MB / 476.2 MB, free: 16.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006789/0.2704, allocations: 128 kB / 476.3 MB, free: 16.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/0.2725, allocations: 1.714 MB / 478.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003935/0.2729, allocations: 0.9859 MB / 479 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003423/0.2733, allocations: 155.5 kB / 479.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001501/0.2734, allocations: 41.08 kB / 479.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2734, allocations: 0 / 479.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of Templates: time 0.01214/0.2856, allocations: 8.009 MB / 487.2 MB, free: 10.87 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)