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_002.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_002,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002",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.001144/0.001144, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001118/0.001118, allocations: 198.5 kB / 16.14 MB, free: 6.645 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.17/1.17, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1748/0.1748, allocations: 22.36 MB / 312.3 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 59.91 kB / 380.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.204/0.2053, allocations: 54.95 MB / 435.2 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.003152/0.2085, allocations: 3.915 MB / 439.1 MB, free: 36.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.2097, allocations: 1.13 MB / 440.2 MB, free: 36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001487/0.2099, allocations: 5.75 kB / 440.2 MB, free: 36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001509/0.21, allocations: 59.14 kB / 440.3 MB, free: 35.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003159/0.2104, allocations: 196.5 kB / 440.5 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003432/0.2107, allocations: 204.1 kB / 440.7 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004966/0.2112, allocations: 0.9849 MB / 441.7 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004092/0.2116, allocations: 0.5605 MB / 442.2 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002378/0.2119, allocations: 395 kB / 442.6 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004249/0.2123, allocations: 0.5892 MB / 443.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.2124, allocations: 73.53 kB / 443.3 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001757/0.2126, allocations: 99.25 kB / 443.4 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001478/0.2128, allocations: 252.9 kB / 443.6 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002642/0.213, allocations: 422.3 kB / 444 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005108/0.2136, allocations: 1.052 MB / 445.1 MB, free: 33.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.237e-06/0.2136, allocations: 0 / 445.1 MB, free: 33.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.71e-07/0.2136, allocations: 4 kB / 445.1 MB, free: 33.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.2136, allocations: 3.344 kB / 445.1 MB, free: 33.92 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002115/0.2157, allocations: 1.167 MB / 446.2 MB, free: 33.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.962e-05/0.2157, allocations: 12.69 kB / 446.3 MB, free: 33.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.624e-05/0.2158, allocations: 96.36 kB / 446.4 MB, free: 33.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001256/0.216, allocations: 76.31 kB / 446.4 MB, free: 33.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004518/0.2164, allocations: 497.6 kB / 446.9 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.2165, allocations: 43.78 kB / 447 MB, free: 32.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.706e-05/0.2166, allocations: 52.56 kB / 447 MB, free: 32.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.2176, allocations: 0.7624 MB / 447.8 MB, free: 32.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.2176, allocations: 0 / 447.8 MB, free: 32.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.906e-05/0.2177, allocations: 26.5 kB / 447.8 MB, free: 32.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.2177, allocations: 12.62 kB / 447.8 MB, free: 32.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/0.2189, allocations: 0.8281 MB / 448.6 MB, free: 32.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003194/0.2221, allocations: 2.086 MB / 450.7 MB, free: 31.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008437/0.2229, allocations: 0.6731 MB / 451.4 MB, free: 30.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005127/0.2235, allocations: 415.5 kB / 451.8 MB, free: 30.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.32e-05/0.2235, allocations: 10.92 kB / 451.8 MB, free: 30.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.754e-05/0.2235, allocations: 49.06 kB / 451.9 MB, free: 30.57 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005196/0.2241, allocations: 157.4 kB / 452 MB, free: 30.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 1.784e-06/0.2241, allocations: 0 / 452 MB, free: 30.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.008918/0.233, allocations: 2.549 MB / 454.6 MB, free: 29.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.421e-05/0.233, allocations: 62.98 kB / 454.6 MB, free: 29.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004411/0.2335, allocations: 0.4884 MB / 455.1 MB, free: 29.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.189e-05/0.2335, allocations: 41.52 kB / 455.2 MB, free: 29.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.2337, allocations: 292.9 kB / 455.4 MB, free: 29.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.2338, allocations: 249.5 kB / 455.7 MB, free: 28.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002531/0.234, allocations: 163.6 kB / 455.8 MB, free: 28.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.72e-05/0.2341, allocations: 375 kB / 456.2 MB, free: 28.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005805/0.2347, allocations: 362.5 kB / 456.6 MB, free: 28.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006397/0.2354, allocations: 494.4 kB / 457 MB, free: 28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/0.2365, allocations: 0.8775 MB / 457.9 MB, free: 27.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.2366, allocations: 1.344 kB / 457.9 MB, free: 27.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005062/0.2416, allocations: 1.651 MB / 459.6 MB, free: 26.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.2416, allocations: 7.406 kB / 459.6 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.2417, allocations: 2.562 kB / 459.6 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003908/0.2456, allocations: 0.7288 MB / 460.3 MB, free: 26.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/0.2468, allocations: 260.2 kB / 460.6 MB, free: 26.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004666/0.2515, allocations: 3.901 MB / 464.5 MB, free: 23.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006062/0.2521, allocations: 29.52 kB / 464.5 MB, free: 23.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.851e-05/0.2522, allocations: 46.33 kB / 464.5 MB, free: 23.8 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 {(2,5), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002235/0.2524, allocations: 203.9 kB / 464.7 MB, free: 23.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.2526, allocations: 69.62 kB / 464.8 MB, free: 23.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003318/0.2559, allocations: 1.416 MB / 466.2 MB, free: 23.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.2559, allocations: 9.484 kB / 466.2 MB, free: 23.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2559, allocations: 2.5 kB / 466.2 MB, free: 23.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.2559, allocations: 9.875 kB / 466.2 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008261/0.2567, allocations: 0.8019 MB / 467.1 MB, free: 22.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.2568, allocations: 4 kB / 467.1 MB, free: 22.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/0.2578, allocations: 214.9 kB / 467.3 MB, free: 22.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001998/0.2598, allocations: 487.3 kB / 467.7 MB, free: 22.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.369e-05/0.2599, allocations: 24.48 kB / 467.8 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002818/0.2627, allocations: 3.253 MB / 471 MB, free: 19.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2627, allocations: 5.016 kB / 471 MB, free: 19.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003554/0.2663, allocations: 1.802 MB / 472.8 MB, free: 18.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.237e-05/0.2664, allocations: 144.3 kB / 473 MB, free: 18.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.2665, allocations: 19.81 kB / 473 MB, free: 18.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000479/0.267, allocations: 40.5 kB / 473 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/0.2672, allocations: 62.55 kB / 473.1 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.483e-05/0.2672, allocations: 25.3 kB / 473.1 MB, free: 18.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003071/0.2675, allocations: 348.2 kB / 473.5 MB, free: 18.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2675, allocations: 4 kB / 473.5 MB, free: 18.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006389/0.2682, allocations: 239 kB / 473.7 MB, free: 18.5 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 (67): * Single equations (assignments): 64 * 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 {(2,6), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003464/0.2716, allocations: 2.327 MB / 476 MB, free: 17.15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002111/0.2738, allocations: 1.17 MB / 477.2 MB, free: 16.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2738, allocations: 1.125 kB / 477.2 MB, free: 16.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001208/0.275, allocations: 0.6831 MB / 477.9 MB, free: 16.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005871/0.2756, allocations: 138.8 kB / 478 MB, free: 16.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01541/0.291, allocations: 8.811 MB / 486.8 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/0.2913, allocations: 0.9356 MB / 487.8 MB, free: 8.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004486/0.2917, allocations: 145.3 kB / 487.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003238/0.2921, allocations: 259.3 kB / 488.1 MB, free: 8.031 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2921, allocations: 0 / 488.1 MB, free: 8.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6142/0.9063, allocations: 18.28 MB / 0.4946 GB, free: 6.113 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002459/0.9066, allocations: 281.8 kB / 0.4948 GB, free: 5.734 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.435/3.341, allocations: 2.812 kB / 0.4948 GB, free: 5.734 MB / 366.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe 2>&1)