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.008578/0.008578, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.002326/0.002326, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.537/1.537, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08913/0.08913, allocations: 22.33 MB / 312.8 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 59.91 kB / 437.1 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1113, allocations: 54.96 MB / 492 MB, free: 4.766 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.005042/0.1164, allocations: 3 MB / 495 MB, free: 1.742 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001893/0.1183, allocations: 0.9433 MB / 496 MB, free: 0.793 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.1185, allocations: 7.938 kB / 496 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.1186, allocations: 63.36 kB / 496 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003686/0.1191, allocations: 178.7 kB / 496.2 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004465/0.1195, allocations: 183.6 kB / 496.4 MB, free: 376 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005813/0.1201, allocations: 0.7175 MB / 497.1 MB, free: 15.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004371/0.1205, allocations: 391.8 kB / 497.5 MB, free: 15.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002814/0.1208, allocations: 299.1 kB / 497.8 MB, free: 14.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004472/0.1213, allocations: 418.6 kB / 498.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.097e-05/0.1214, allocations: 68 kB / 498.2 MB, free: 14.49 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001557/0.1216, allocations: 104 kB / 498.3 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000186/0.1217, allocations: 211.4 kB / 498.6 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003171/0.1221, allocations: 318.7 kB / 498.9 MB, free: 13.87 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007772/0.1229, allocations: 0.7787 MB / 499.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.1229, allocations: 0 / 499.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1229, allocations: 0 / 499.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.1229, allocations: 4 kB / 499.7 MB, free: 13.08 MB / 382.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.002051/0.125, allocations: 0.912 MB / 0.4888 GB, free: 12.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.125, allocations: 12.03 kB / 0.4888 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/0.1251, allocations: 64.2 kB / 0.4889 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004901/0.1256, allocations: 383.7 kB / 0.4893 GB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.091e-05/0.1257, allocations: 33.38 kB / 0.4893 GB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.871e-05/0.1258, allocations: 52.38 kB / 0.4894 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.1268, allocations: 0.5415 MB / 0.4899 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.1268, allocations: 7.938 kB / 0.4899 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.472e-05/0.1269, allocations: 12 kB / 0.4899 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.1269, allocations: 16 kB / 0.4899 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009949/0.1279, allocations: 0.5387 MB / 0.4904 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003023/0.1309, allocations: 1.531 MB / 0.4919 GB, free: 8.844 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008345/0.1318, allocations: 488.7 kB / 0.4924 GB, free: 8.359 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005033/0.1323, allocations: 262 kB / 0.4927 GB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.536e-05/0.1324, allocations: 8.578 kB / 0.4927 GB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.1324, allocations: 43 kB / 0.4927 GB, free: 8.039 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002451/0.1327, allocations: 55.58 kB / 0.4928 GB, free: 7.984 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 1.764e-06/0.1327, allocations: 0 / 0.4928 GB, free: 7.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=48): time 0.002908/0.1356, allocations: 1.088 MB / 0.4938 GB, free: 6.848 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.1356, allocations: 63.72 kB / 0.4939 GB, free: 6.773 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003954/0.136, allocations: 393.5 kB / 0.4943 GB, free: 6.379 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.622e-05/0.1361, allocations: 33.7 kB / 0.4943 GB, free: 6.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.1363, allocations: 244.1 kB / 0.4945 GB, free: 6.098 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.1364, allocations: 185.4 kB / 0.4947 GB, free: 5.914 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002025/0.1366, allocations: 118.3 kB / 0.4948 GB, free: 5.793 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1368, allocations: 358.8 kB / 0.4951 GB, free: 5.434 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000496/0.1373, allocations: 253.2 kB / 0.4954 GB, free: 5.188 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005281/0.1378, allocations: 366.1 kB / 0.4957 GB, free: 4.789 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001041/0.1388, allocations: 0.6304 MB / 0.4964 GB, free: 4.117 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1389, allocations: 0 / 0.4964 GB, free: 4.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001899/0.1408, allocations: 0.8588 MB / 0.4972 GB, free: 3.246 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.1408, allocations: 8 kB / 0.4972 GB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.1408, allocations: 4 kB / 0.4972 GB, free: 3.234 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/0.142, allocations: 177.9 kB / 0.4974 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.1432, allocations: 243.7 kB / 0.4976 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009815/0.1442, allocations: 1.155 MB / 0.4987 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004306/0.1447, allocations: 23.98 kB / 0.4988 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.431e-05/0.1447, allocations: 32.73 kB / 0.4988 GB, free: 1.555 MB / 382.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000268/0.145, allocations: 190.4 kB / 0.499 GB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.773e-05/0.1451, allocations: 43.44 kB / 0.499 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001949/0.1471, allocations: 0.8221 MB / 0.4998 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.1471, allocations: 8 kB / 0.4998 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1471, allocations: 3.984 kB / 0.4998 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.443e-06/0.1471, allocations: 0 / 0.4998 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2691/0.4162, allocations: 1.465 MB / 0.5013 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.4163, allocations: 0.5625 kB / 0.5013 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.4173, allocations: 196.9 kB / 0.5014 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007899/0.4181, allocations: 168.5 kB / 0.5016 GB, free: 22.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.265e-05/0.4182, allocations: 17.61 kB / 0.5016 GB, free: 22.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005604/0.4188, allocations: 1.161 MB / 0.5028 GB, free: 21.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.4188, allocations: 3.969 kB / 0.5028 GB, free: 21.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001999/0.4208, allocations: 1.131 MB / 0.5039 GB, free: 21.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.4209, allocations: 128 kB / 0.504 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.862e-05/0.421, allocations: 17.48 kB / 0.504 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003684/0.4214, allocations: 22.28 kB / 0.504 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.4215, allocations: 47.66 kB / 0.5041 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.147e-05/0.4215, allocations: 21 kB / 0.5041 GB, free: 21.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002616/0.4218, allocations: 276 kB / 0.5044 GB, free: 21.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4218, allocations: 0 / 0.5044 GB, free: 21.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005315/0.4223, allocations: 167.5 kB / 0.5045 GB, free: 21.16 MB / 382.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000179/0.4225, allocations: 120.7 kB / 0.5046 GB, free: 21.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001389/0.4239, allocations: 0.6849 MB / 0.5053 GB, free: 21.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4239, allocations: 2.438 kB / 0.5053 GB, free: 21.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007456/0.4247, allocations: 365.1 kB / 0.5056 GB, free: 21.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005522/0.4253, allocations: 108.3 kB / 0.5058 GB, free: 21.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003208/0.4285, allocations: 1.777 MB / 0.5075 GB, free: 20.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/0.4288, allocations: 0.8679 MB / 0.5083 GB, free: 19.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004199/0.4293, allocations: 134.9 kB / 0.5085 GB, free: 19.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002031/0.4295, allocations: 55.19 kB / 0.5085 GB, free: 19.64 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4295, allocations: 2.219 kB / 0.5085 GB, free: 19.64 MB / 382.1 MB Notification: Performance of Templates: time 0.01911/0.4486, allocations: 9.134 MB / 0.5174 GB, free: 17.96 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.makefile (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)