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_003.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.Flow_pressure_control_liquids.Valve_linearisation_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003",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.001529/0.001529, 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.001687/0.001687, allocations: 191.9 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.297/1.297, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1795/0.1795, allocations: 22.35 MB / 312.7 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002071/0.002071, allocations: 59.89 kB / 380.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.231, allocations: 54.95 MB / 435.9 MB, free: 39.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.00323/0.2342, allocations: 3.433 MB / 439.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.2355, allocations: 1.049 MB / 440.4 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.2357, allocations: 8.906 kB / 440.4 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001577/0.2358, allocations: 75.86 kB / 440.5 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003354/0.2362, allocations: 208.2 kB / 440.7 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003968/0.2366, allocations: 220.4 kB / 440.9 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004747/0.2371, allocations: 0.8526 MB / 441.7 MB, free: 35.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004755/0.2375, allocations: 0.5913 MB / 442.3 MB, free: 35.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002586/0.2378, allocations: 410.5 kB / 442.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004627/0.2383, allocations: 0.5626 MB / 443.3 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001162/0.2384, allocations: 96.19 kB / 443.4 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001945/0.2386, allocations: 126.1 kB / 443.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001614/0.2388, allocations: 275.1 kB / 443.8 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002819/0.2391, allocations: 428.1 kB / 444.2 MB, free: 34.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000578/0.2396, allocations: 1.021 MB / 445.2 MB, free: 34.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.2397, allocations: 0 / 445.2 MB, free: 34.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2397, allocations: 0 / 445.2 MB, free: 34.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.2397, allocations: 0 / 445.2 MB, free: 34.28 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: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.002098/0.2418, allocations: 1.107 MB / 446.3 MB, free: 33.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.052e-05/0.2418, allocations: 15 kB / 446.3 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.7e-05/0.2419, allocations: 93.75 kB / 446.4 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.2421, allocations: 70.38 kB / 446.5 MB, free: 33.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004489/0.2425, allocations: 456 kB / 446.9 MB, free: 33.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.2426, allocations: 37.81 kB / 447 MB, free: 33.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.2427, allocations: 56.59 kB / 447 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.2437, allocations: 0.7478 MB / 447.8 MB, free: 32.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.2437, allocations: 2.656 kB / 447.8 MB, free: 32.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-05/0.2438, allocations: 18.88 kB / 447.8 MB, free: 32.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.2438, allocations: 13.06 kB / 447.8 MB, free: 32.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.245, allocations: 0.8079 MB / 448.6 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003912/0.2489, allocations: 2.403 MB / 451 MB, free: 31.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009369/0.2498, allocations: 0.6351 MB / 451.7 MB, free: 31.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006703/0.2505, allocations: 423.4 kB / 452.1 MB, free: 30.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.168e-05/0.2506, allocations: 17.36 kB / 452.1 MB, free: 30.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.558e-05/0.2506, allocations: 41.62 kB / 452.1 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000539/0.2511, allocations: 163.2 kB / 452.3 MB, free: 30.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.505e-06/0.2512, allocations: 4 kB / 452.3 MB, free: 30.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.008909/0.2601, allocations: 2.372 MB / 454.7 MB, free: 29.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.592e-05/0.2601, allocations: 57.94 kB / 454.7 MB, free: 29.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000404/0.2605, allocations: 450.4 kB / 455.2 MB, free: 29.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.299e-05/0.2606, allocations: 35.86 kB / 455.2 MB, free: 29.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.2607, allocations: 268.3 kB / 455.5 MB, free: 29.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/0.2608, allocations: 239.3 kB / 455.7 MB, free: 29.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002389/0.2611, allocations: 161.6 kB / 455.8 MB, free: 29.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.925e-05/0.2612, allocations: 367.8 kB / 456.2 MB, free: 28.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005713/0.2617, allocations: 339.3 kB / 456.5 MB, free: 28.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006275/0.2624, allocations: 476.4 kB / 457 MB, free: 28.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001196/0.2636, allocations: 0.8259 MB / 457.8 MB, free: 27.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.2636, allocations: 1.344 kB / 457.8 MB, free: 27.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005229/0.2688, allocations: 1.559 MB / 459.4 MB, free: 27.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.2689, allocations: 10.41 kB / 459.4 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.2689, allocations: 2.656 kB / 459.4 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004582/0.2735, allocations: 0.805 MB / 460.2 MB, free: 27.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.2747, allocations: 255.7 kB / 460.5 MB, free: 27.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004868/0.2796, allocations: 4.079 MB / 464.5 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005876/0.2802, allocations: 33.06 kB / 464.6 MB, free: 24.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.914e-05/0.2803, allocations: 46.3 kB / 464.6 MB, free: 24.1 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (78): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002262/0.2805, allocations: 201.2 kB / 464.8 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.2807, allocations: 55.19 kB / 464.9 MB, free: 23.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003284/0.2839, allocations: 1.316 MB / 466.2 MB, free: 23.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.284, allocations: 9 kB / 466.2 MB, free: 23.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.284, allocations: 3.047 kB / 466.2 MB, free: 23.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.284, allocations: 4.078 kB / 466.2 MB, free: 23.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003822/0.2878, allocations: 2.008 MB / 468.2 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2878, allocations: 0 / 468.2 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.2889, allocations: 210.8 kB / 468.4 MB, free: 22.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002279/0.2912, allocations: 0.5148 MB / 468.9 MB, free: 22.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-05/0.2913, allocations: 26.47 kB / 468.9 MB, free: 22.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002875/0.2942, allocations: 3.408 MB / 472.4 MB, free: 19.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2942, allocations: 5.844 kB / 472.4 MB, free: 19.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003457/0.2977, allocations: 1.664 MB / 474 MB, free: 18.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.35e-05/0.2978, allocations: 133.6 kB / 474.2 MB, free: 18.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.2979, allocations: 27.03 kB / 474.2 MB, free: 18.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004757/0.2984, allocations: 26.89 kB / 474.2 MB, free: 18.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001559/0.2985, allocations: 58.78 kB / 474.3 MB, free: 18.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.271e-05/0.2986, allocations: 25.03 kB / 474.3 MB, free: 18.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002946/0.2989, allocations: 324.9 kB / 474.6 MB, free: 18.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2989, allocations: 0 / 474.6 MB, free: 18.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007217/0.2996, allocations: 227.1 kB / 474.8 MB, free: 18.27 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 (65): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003419/0.303, allocations: 2.195 MB / 477 MB, free: 16.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002561/0.3056, allocations: 1.217 MB / 478.2 MB, free: 16.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3056, allocations: 0 / 478.2 MB, free: 16.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001191/0.3068, allocations: 0.6499 MB / 478.9 MB, free: 16.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000588/0.3074, allocations: 130.1 kB / 479 MB, free: 16.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01539/0.3228, allocations: 8.233 MB / 487.3 MB, free: 9.355 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.3231, allocations: 0.9157 MB / 488.2 MB, free: 8.414 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004422/0.3235, allocations: 145.1 kB / 488.3 MB, free: 8.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003112/0.3239, allocations: 243.3 kB / 488.5 MB, free: 8.035 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3239, allocations: 3.938 kB / 488.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9716/1.296, allocations: 18.17 MB / 0.4948 GB, free: 6.199 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.6/17.89, allocations: 9.328 kB / 0.4949 GB, free: 6.199 MB / 366.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe 2>&1)