Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.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.Flow_pressure_control_liquids.Valve_linearisation_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001376/0.001376, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 223.2 MB / 239.9 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2406/0.2406, allocations: 22.33 MB / 313.3 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005352/0.0005355, allocations: 12 kB / 381.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3662/0.3668, allocations: 55.98 MB / 437.8 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.003584/0.3705, allocations: 2.579 MB / 440.4 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001605/0.3721, allocations: 0.9756 MB / 441.4 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001559/0.3723, allocations: 5.969 kB / 441.4 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001656/0.3725, allocations: 51.12 kB / 441.4 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00039/0.3729, allocations: 176.5 kB / 441.6 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004569/0.3733, allocations: 137.1 kB / 441.7 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005134/0.3739, allocations: 445.4 kB / 442.2 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005157/0.3744, allocations: 332.7 kB / 442.5 MB, free: 36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002576/0.3746, allocations: 247.5 kB / 442.7 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003665/0.375, allocations: 354.3 kB / 443.1 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.987e-05/0.3751, allocations: 40.88 kB / 443.1 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001424/0.3753, allocations: 76.06 kB / 443.2 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.3754, allocations: 165.3 kB / 443.4 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.774e-05/0.3755, allocations: 127.5 kB / 443.5 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004186/0.3759, allocations: 0.5656 MB / 444.1 MB, free: 35.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.376, allocations: 0 / 444.1 MB, free: 35.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.376, allocations: 0 / 444.1 MB, free: 35.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.376, allocations: 0 / 444.1 MB, free: 35.48 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001581/0.3776, allocations: 0.8134 MB / 444.9 MB, free: 34.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.3776, allocations: 9.062 kB / 444.9 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001115/0.3777, allocations: 57.84 kB / 444.9 MB, free: 34.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004472/0.3782, allocations: 381.8 kB / 445.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.146e-05/0.3782, allocations: 30.16 kB / 445.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.719e-05/0.3783, allocations: 49.12 kB / 445.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008612/0.3792, allocations: 0.5409 MB / 445.9 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.3792, allocations: 0 / 445.9 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.624e-05/0.3793, allocations: 21.64 kB / 445.9 MB, free: 34.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.3793, allocations: 9.656 kB / 446 MB, free: 34.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008813/0.3802, allocations: 0.5438 MB / 446.5 MB, free: 34.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002806/0.383, allocations: 1.539 MB / 448 MB, free: 33.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008087/0.3838, allocations: 499.7 kB / 448.5 MB, free: 33.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.565e-05/0.3839, allocations: 9.703 kB / 448.5 MB, free: 33.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/0.3839, allocations: 37.38 kB / 448.6 MB, free: 33.12 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002498/0.3842, allocations: 66.17 kB / 448.6 MB, free: 33.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.765e-06/0.3842, allocations: 0 / 448.6 MB, free: 33.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002738/0.3869, allocations: 1.083 MB / 449.7 MB, free: 32.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/0.387, allocations: 61.5 kB / 449.8 MB, free: 32.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003784/0.3873, allocations: 392 kB / 450.2 MB, free: 32.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.275e-05/0.3874, allocations: 36.58 kB / 450.2 MB, free: 32.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.3875, allocations: 243.9 kB / 450.4 MB, free: 32.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.3876, allocations: 177.8 kB / 450.6 MB, free: 31.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.564e-05/0.3877, allocations: 10.94 kB / 450.6 MB, free: 31.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.763e-05/0.3878, allocations: 359.8 kB / 451 MB, free: 31.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004111/0.3882, allocations: 254.6 kB / 451.2 MB, free: 31.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004509/0.3887, allocations: 362 kB / 451.6 MB, free: 31.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004679/0.3891, allocations: 309.5 kB / 451.9 MB, free: 31.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.3891, allocations: 0 / 451.9 MB, free: 31.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001689/0.3908, allocations: 0.8399 MB / 452.7 MB, free: 30.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.719e-05/0.3909, allocations: 14.56 kB / 452.7 MB, free: 30.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.3909, allocations: 3.938 kB / 452.7 MB, free: 30.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.392, allocations: 173.1 kB / 452.9 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.3933, allocations: 243.2 kB / 453.1 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007783/0.3941, allocations: 1.162 MB / 454.3 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005372/0.3947, allocations: 27.67 kB / 454.3 MB, free: 29.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.174e-05/0.3947, allocations: 34 kB / 454.4 MB, free: 29.62 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002686/0.395, allocations: 178.3 kB / 454.5 MB, free: 29.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.26e-05/0.3951, allocations: 51.88 kB / 454.6 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001845/0.397, allocations: 0.8213 MB / 455.4 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.397, allocations: 6.5 kB / 455.4 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.397, allocations: 3.938 kB / 455.4 MB, free: 29.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.397, allocations: 7.328 kB / 455.4 MB, free: 29.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006905/0.3977, allocations: 0.6225 MB / 456 MB, free: 28.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.3977, allocations: 3.953 kB / 456.1 MB, free: 28.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/0.3988, allocations: 200 kB / 456.2 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009188/0.3997, allocations: 169.3 kB / 456.4 MB, free: 28.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.545e-05/0.3998, allocations: 24.34 kB / 456.4 MB, free: 28.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006818/0.4005, allocations: 1.164 MB / 457.6 MB, free: 27.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4005, allocations: 5.438 kB / 457.6 MB, free: 27.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00227/0.4028, allocations: 1.118 MB / 458.7 MB, free: 26.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001457/0.4029, allocations: 125.8 kB / 458.8 MB, free: 26.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.043e-05/0.403, allocations: 17.03 kB / 458.9 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003921/0.4034, allocations: 31.5 kB / 458.9 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.4035, allocations: 43.11 kB / 458.9 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.39e-05/0.4036, allocations: 19.73 kB / 459 MB, free: 26.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002892/0.4039, allocations: 270.4 kB / 459.2 MB, free: 26.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4039, allocations: 4 kB / 459.2 MB, free: 26.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006724/0.4046, allocations: 169.3 kB / 459.4 MB, free: 26.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (streamNL.T[1],streamNL.T[2],streamNL.T[3],streamNL.T[4],streamNL.T[5],streamLIN.T[1],streamLIN.T[2],streamLIN.T[3],streamLIN.T[4],streamLIN.T[5]) * 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 (56): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002046/0.4048, allocations: 126.3 kB / 459.5 MB, free: 26.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.4062, allocations: 0.6819 MB / 460.2 MB, free: 26.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.4063, allocations: 3.938 kB / 460.2 MB, free: 26.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007817/0.407, allocations: 354.4 kB / 460.5 MB, free: 26.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004608/0.4075, allocations: 105.9 kB / 460.6 MB, free: 26.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003284/0.4108, allocations: 2.125 MB / 462.8 MB, free: 24.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.4111, allocations: 0.8743 MB / 463.6 MB, free: 24.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005085/0.4116, allocations: 127.2 kB / 463.8 MB, free: 24.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001942/0.4118, allocations: 57.17 kB / 463.8 MB, free: 24.24 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4119, allocations: 0 / 463.8 MB, free: 24.24 MB / 350.1 MB Notification: Performance of Templates: time 0.01498/0.4268, allocations: 8.009 MB / 471.8 MB, free: 23.28 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.makefile Environment - environmentSimulation: (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1) Environment - environmentSimulation: