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: translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001619/0.001619, allocations: 105.7 kB / 16.37 MB, free: 6.465 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.001803/0.001803, allocations: 190 kB / 17.31 MB, free: 5.812 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.351/1.351, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09194/0.09194, allocations: 22.33 MB / 313.5 MB, free: 8.918 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 63.39 kB / 382.3 MB, free: 41.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08886/0.0902, allocations: 54.96 MB / 437.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.004427/0.09466, allocations: 3.567 MB / 440.8 MB, free: 8.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001898/0.09658, allocations: 1.072 MB / 441.9 MB, free: 7.605 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002919/0.09689, allocations: 8 kB / 441.9 MB, free: 7.598 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002429/0.09715, allocations: 83.09 kB / 441.9 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005675/0.09775, allocations: 214.3 kB / 442.2 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006377/0.0984, allocations: 239.5 kB / 442.4 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009233/0.09933, allocations: 0.9121 MB / 443.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007154/0.1001, allocations: 0.6035 MB / 443.9 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004167/0.1005, allocations: 430.8 kB / 444.3 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006267/0.1011, allocations: 0.5996 MB / 444.9 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.1013, allocations: 100 kB / 445 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001947/0.1015, allocations: 132 kB / 445.2 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002238/0.1017, allocations: 279.2 kB / 445.4 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003878/0.1021, allocations: 457.9 kB / 445.9 MB, free: 3.578 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000834/0.1029, allocations: 1.083 MB / 447 MB, free: 2.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.1029, allocations: 0 / 447 MB, free: 2.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1029, allocations: 0 / 447 MB, free: 2.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.103, allocations: 0 / 447 MB, free: 2.492 MB / 318.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.002501/0.1055, allocations: 1.177 MB / 448.1 MB, free: 1.266 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.039e-05/0.1055, allocations: 8.031 kB / 448.1 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001538/0.1057, allocations: 80 kB / 448.2 MB, free: 1.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006762/0.1063, allocations: 487 kB / 448.7 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.844e-05/0.1064, allocations: 45.69 kB / 448.7 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.1065, allocations: 56.36 kB / 448.8 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.1078, allocations: 0.7718 MB / 449.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.1078, allocations: 0 / 449.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.337e-05/0.1079, allocations: 23.98 kB / 449.6 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.1079, allocations: 12 kB / 449.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.1093, allocations: 0.8289 MB / 450.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003989/0.1133, allocations: 2.074 MB / 452.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.1143, allocations: 0.6696 MB / 453.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006478/0.115, allocations: 414.4 kB / 453.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.381e-05/0.1151, allocations: 16.72 kB / 453.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.1151, allocations: 47.06 kB / 453.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005972/0.1157, allocations: 163.3 kB / 453.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of pre-optimization done (n=68): time 2.335e-06/0.1157, allocations: 0 / 453.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=68): time 0.01018/0.1259, allocations: 2.553 MB / 456.4 MB, free: 8.844 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.131e-05/0.126, allocations: 59.97 kB / 456.4 MB, free: 8.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005872/0.1266, allocations: 497.9 kB / 456.9 MB, free: 8.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.881e-05/0.1266, allocations: 33.7 kB / 456.9 MB, free: 8.234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001923/0.1268, allocations: 296.4 kB / 457.2 MB, free: 7.938 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000206/0.127, allocations: 248.4 kB / 457.5 MB, free: 7.691 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002725/0.1273, allocations: 162.5 kB / 457.6 MB, free: 7.527 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.1275, allocations: 382.7 kB / 458 MB, free: 7.145 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007476/0.1282, allocations: 369.7 kB / 458.4 MB, free: 6.781 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007885/0.129, allocations: 490.8 kB / 458.8 MB, free: 6.262 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001483/0.1305, allocations: 0.8768 MB / 459.7 MB, free: 5.344 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.1306, allocations: 0 / 459.7 MB, free: 5.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005802/0.1364, allocations: 1.662 MB / 461.4 MB, free: 3.664 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.586e-05/0.1364, allocations: 8 kB / 461.4 MB, free: 3.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.1364, allocations: 8 kB / 461.4 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00428/0.1407, allocations: 0.7164 MB / 462.1 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001476/0.1422, allocations: 251.7 kB / 462.4 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006511/0.1487, allocations: 4.152 MB / 466.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008293/0.1496, allocations: 32.02 kB / 466.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001603/0.1498, allocations: 43.95 kB / 466.6 MB, free: 14.25 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.0004221/0.1502, allocations: 210.4 kB / 466.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001811/0.1504, allocations: 59.25 kB / 466.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003895/0.1543, allocations: 1.415 MB / 468.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.1543, allocations: 8 kB / 468.3 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.1543, allocations: 4 kB / 468.3 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.1543, allocations: 3.984 kB / 468.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.1554, allocations: 0.8023 MB / 469.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.1554, allocations: 0 / 469.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/0.1566, allocations: 211.8 kB / 469.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002241/0.1589, allocations: 478 kB / 469.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.676e-05/0.159, allocations: 27.98 kB / 469.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004013/0.163, allocations: 3.47 MB / 473.2 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1631, allocations: 3.938 kB / 473.2 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004169/0.1672, allocations: 1.808 MB / 475.1 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001994/0.1674, allocations: 144.2 kB / 475.2 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.1676, allocations: 20 kB / 475.2 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000569/0.1682, allocations: 27.97 kB / 475.2 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.1683, allocations: 60.91 kB / 475.3 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.637e-05/0.1684, allocations: 27.98 kB / 475.3 MB, free: 5.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004054/0.1688, allocations: 346.9 kB / 475.7 MB, free: 4.844 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.1688, allocations: 4 kB / 475.7 MB, free: 4.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000808/0.1696, allocations: 247.7 kB / 475.9 MB, free: 4.598 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.0002313/0.1699, allocations: 127.2 kB / 476 MB, free: 4.465 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002611/0.1725, allocations: 1.175 MB / 477.2 MB, free: 3.277 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1725, allocations: 8.25 kB / 477.2 MB, free: 3.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001457/0.174, allocations: 0.6992 MB / 477.9 MB, free: 2.555 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006478/0.1746, allocations: 136.6 kB / 478.1 MB, free: 2.426 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003817/0.1785, allocations: 2.116 MB / 480.2 MB, free: 288 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004569/0.1789, allocations: 0.9356 MB / 481.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004432/0.1794, allocations: 153.2 kB / 481.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002292/0.1796, allocations: 63.41 kB / 481.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1796, allocations: 0 / 481.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of Templates: time 0.02161/0.2013, allocations: 13.15 MB / 494.5 MB, free: 2.078 MB / 366.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.makefile (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 & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe 2>&1)