Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Pumps_valve.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_component_models.Pumps_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Pumps_valve") translateModel(AES.Coursework.ThermSys_component_models.Pumps_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Pumps_valve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 101.6 kB / 16.27 MB, free: 5.949 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.001094/0.001094, allocations: 190.6 kB / 17.2 MB, free: 5.586 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.321/1.321, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09035/0.09035, allocations: 22.31 MB / 313.4 MB, free: 8.977 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 62.31 kB / 381.5 MB, free: 41.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08133/0.0826, allocations: 54.95 MB / 436.4 MB, free: 13.05 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Pumps_valve): time 0.0304/0.113, allocations: 22.23 MB / 458.6 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.114, allocations: 394.8 kB / 459 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.1142, allocations: 0 / 459 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000103/0.1143, allocations: 43.52 kB / 459.1 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002161/0.1145, allocations: 103.1 kB / 459.2 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003122/0.1148, allocations: 107.7 kB / 459.3 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003436/0.1152, allocations: 410.3 kB / 459.7 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003558/0.1155, allocations: 251.5 kB / 459.9 MB, free: 5.676 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001679/0.1157, allocations: 163.4 kB / 460.1 MB, free: 5.516 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002773/0.116, allocations: 211.1 kB / 460.3 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.638e-05/0.1161, allocations: 36 kB / 460.3 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001337/0.1162, allocations: 67.95 kB / 460.4 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.56e-05/0.1163, allocations: 87.67 kB / 460.5 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.1165, allocations: 195 kB / 460.7 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003744/0.1168, allocations: 430.5 kB / 461.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1169, allocations: 8 kB / 461.1 MB, free: 4.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1169, allocations: 0 / 461.1 MB, free: 4.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.481e-05/0.1169, allocations: 0 / 461.1 MB, free: 4.5 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001438/0.1183, allocations: 0.6895 MB / 461.8 MB, free: 3.758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.1184, allocations: 12.03 kB / 461.8 MB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.1185, allocations: 36.47 kB / 461.8 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004718/0.119, allocations: 300 kB / 462.1 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.119, allocations: 16.94 kB / 462.1 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.225e-05/0.1191, allocations: 24.38 kB / 462.2 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000568/0.1196, allocations: 293.3 kB / 462.4 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.1197, allocations: 192 / 462.4 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.098e-05/0.1197, allocations: 11.94 kB / 462.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.1197, allocations: 8 kB / 462.5 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006166/0.1203, allocations: 250.1 kB / 462.7 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00145/0.1218, allocations: 0.8187 MB / 463.5 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000531/0.1223, allocations: 241.1 kB / 463.8 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003517/0.1227, allocations: 140.8 kB / 463.9 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.1227, allocations: 4 kB / 463.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.1228, allocations: 42.44 kB / 463.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002142/0.123, allocations: 55.69 kB / 464 MB, free: 1.422 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.433e-06/0.123, allocations: 0 / 464 MB, free: 1.422 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.003829/0.1268, allocations: 0.9631 MB / 465 MB, free: 396 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.1269, allocations: 51.41 kB / 465 MB, free: 332 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.1272, allocations: 283.4 kB / 465.3 MB, free: 32 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.672e-05/0.1272, allocations: 41.64 kB / 465.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.1274, allocations: 180.5 kB / 465.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.677e-05/0.1274, allocations: 78.84 kB / 465.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.818e-05/0.1275, allocations: 49.92 kB / 465.6 MB, free: 15.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.1276, allocations: 338.8 kB / 466 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00028/0.1279, allocations: 100.4 kB / 466.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002771/0.1282, allocations: 108.9 kB / 466.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006253/0.1289, allocations: 231.9 kB / 466.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/0.1289, allocations: 3.938 kB / 466.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.00181/0.1307, allocations: 0.492 MB / 466.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.1307, allocations: 8 kB / 466.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.1307, allocations: 0 / 466.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001286/0.132, allocations: 202.3 kB / 467.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006099/0.1326, allocations: 95.91 kB / 467.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004886/0.1375, allocations: 4.767 MB / 472 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003234/0.1379, allocations: 16.02 kB / 472 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.352e-05/0.1379, allocations: 11.98 kB / 472 MB, free: 8.949 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (18): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000207/0.1382, allocations: 149.7 kB / 472.1 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.713e-05/0.1383, allocations: 27.62 kB / 472.2 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002097/0.1404, allocations: 0.5062 MB / 472.7 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.1404, allocations: 4 kB / 472.7 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1404, allocations: 4 kB / 472.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.1404, allocations: 3.984 kB / 472.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002455/0.1429, allocations: 0.9342 MB / 473.6 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.1429, allocations: 48 / 473.6 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007326/0.1436, allocations: 91.91 kB / 473.7 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008758/0.1445, allocations: 158.4 kB / 473.9 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.225e-05/0.1446, allocations: 8 kB / 473.9 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003485/0.1481, allocations: 4.427 MB / 478.3 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1481, allocations: 0 / 478.3 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001364/0.1495, allocations: 0.5521 MB / 478.8 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.735e-05/0.1495, allocations: 112.7 kB / 478.9 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.034e-05/0.1496, allocations: 4 kB / 479 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.1498, allocations: 20.05 kB / 479 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.842e-05/0.1499, allocations: 39.75 kB / 479 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.989e-05/0.1499, allocations: 8 kB / 479 MB, free: 1.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001915/0.1501, allocations: 210 kB / 479.2 MB, free: 1.227 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1502, allocations: 7.938 kB / 479.2 MB, free: 1.219 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005482/0.1507, allocations: 95.84 kB / 479.3 MB, free: 1.125 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001412/0.1509, allocations: 105.1 kB / 479.4 MB, free: 1.016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002038/0.1529, allocations: 0.6532 MB / 480.1 MB, free: 344 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1529, allocations: 0 / 480.1 MB, free: 344 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008738/0.1538, allocations: 445.1 kB / 480.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003844/0.1542, allocations: 54.75 kB / 480.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001029/0.1552, allocations: 0.6554 MB / 481.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.1556, allocations: 0.7961 MB / 482 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.066e-05/0.1556, allocations: 31.44 kB / 482.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1557, allocations: 0 / 482.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of Templates: time 0.01002/0.1657, allocations: 9.126 MB / 491.2 MB, free: 5.168 MB / 366.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Pumps_valve.sim & ./AES_AES.Coursework.ThermSys_component_models.Pumps_valve -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe 2>&1)