Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.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.Heater_power_vs_wTin.heater_wT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT") translateModel(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 111.5 kB / 16.37 MB, free: 5.539 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.001536/0.001536, allocations: 192 kB / 17.31 MB, free: 5.18 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.361/1.361, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09559/0.09559, allocations: 22.34 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 60.86 kB / 382.2 MB, free: 41.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09417/0.09547, allocations: 54.96 MB / 437.2 MB, free: 12.27 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_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/flowOnePort_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.Heater_power_vs_wTin.heater_wT): time 0.03091/0.1264, allocations: 21.73 MB / 458.9 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.1278, allocations: 0.6819 MB / 459.6 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001767/0.128, allocations: 4 kB / 459.6 MB, free: 5.988 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001681/0.1282, allocations: 35.66 kB / 459.7 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002701/0.1285, allocations: 111.1 kB / 459.8 MB, free: 5.844 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003862/0.1289, allocations: 99.81 kB / 459.9 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004511/0.1293, allocations: 415.1 kB / 460.3 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003135/0.1296, allocations: 243.6 kB / 460.5 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002029/0.1299, allocations: 171.4 kB / 460.7 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002854/0.1302, allocations: 231.2 kB / 460.9 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.651e-05/0.1302, allocations: 36 kB / 460.9 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.817e-05/0.1303, allocations: 40 kB / 461 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.1304, allocations: 123.7 kB / 461.1 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001896/0.1306, allocations: 199.1 kB / 461.3 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000398/0.131, allocations: 454.5 kB / 461.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.131, allocations: 0 / 461.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.131, allocations: 0 / 461.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.131, allocations: 0 / 461.7 MB, free: 3.871 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001275/0.1323, allocations: 0.682 MB / 462.4 MB, free: 3.141 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.1324, allocations: 12.03 kB / 462.4 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.046e-05/0.1324, allocations: 32.56 kB / 462.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003852/0.1328, allocations: 306.5 kB / 462.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/0.1329, allocations: 20.94 kB / 462.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.387e-05/0.1329, allocations: 24.38 kB / 462.8 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006503/0.1336, allocations: 344.9 kB / 463.1 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.1336, allocations: 3.938 kB / 463.1 MB, free: 2.371 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.409e-05/0.1336, allocations: 12 kB / 463.2 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/0.1337, allocations: 8 kB / 463.2 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007137/0.1344, allocations: 330 kB / 463.5 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.1363, allocations: 1.249 MB / 464.7 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005877/0.1369, allocations: 320.4 kB / 465.1 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004162/0.1373, allocations: 225.3 kB / 465.3 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.263e-05/0.1374, allocations: 4.234 kB / 465.3 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.1374, allocations: 38.78 kB / 465.3 MB, free: 80 kB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.753e-06/0.1374, allocations: 4 kB / 465.3 MB, free: 76 kB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.003055/0.1405, allocations: 1.225 MB / 466.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.793e-05/0.1405, allocations: 59.34 kB / 466.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002601/0.1408, allocations: 258.6 kB / 466.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.1408, allocations: 33.64 kB / 466.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.1409, allocations: 164.6 kB / 467 MB, free: 14.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.745e-05/0.141, allocations: 102.5 kB / 467.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.1411, allocations: 57.69 kB / 467.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.1413, allocations: 338.8 kB / 467.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003977/0.1417, allocations: 175.8 kB / 467.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003722/0.1421, allocations: 183.9 kB / 467.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007898/0.1429, allocations: 393.6 kB / 468.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.1429, allocations: 0 / 468.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001453/0.1443, allocations: 0.5986 MB / 468.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.1444, allocations: 8 kB / 468.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1444, allocations: 7.938 kB / 468.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007209/0.1451, allocations: 164.2 kB / 469 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000518/0.1456, allocations: 95.86 kB / 469.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006278/0.1519, allocations: 7.599 MB / 476.7 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003385/0.1523, allocations: 39.69 kB / 476.8 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.074e-05/0.1523, allocations: 12 kB / 476.8 MB, free: 3.672 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 (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002077/0.1525, allocations: 161.7 kB / 476.9 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.125e-05/0.1526, allocations: 27.72 kB / 477 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/0.154, allocations: 0.5758 MB / 477.5 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.154, allocations: 0 / 477.5 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.154, allocations: 7.938 kB / 477.6 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.154, allocations: 0 / 477.6 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005521/0.1546, allocations: 445 kB / 478 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1546, allocations: 3.938 kB / 478 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005126/0.1551, allocations: 95.92 kB / 478.1 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004804/0.1556, allocations: 144.1 kB / 478.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.197e-05/0.1556, allocations: 8 kB / 478.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005203/0.1608, allocations: 7.203 MB / 485.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1609, allocations: 4.156 kB / 485.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001729/0.1626, allocations: 0.859 MB / 486.3 MB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.1627, allocations: 112.7 kB / 486.4 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.822e-05/0.1628, allocations: 8 kB / 486.4 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002711/0.163, allocations: 23.91 kB / 486.4 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.1632, allocations: 39.89 kB / 486.5 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-05/0.1632, allocations: 11.98 kB / 486.5 MB, free: 9.109 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001677/0.1634, allocations: 186 kB / 486.7 MB, free: 8.934 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1634, allocations: 0 / 486.7 MB, free: 8.934 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004884/0.1639, allocations: 119.8 kB / 486.8 MB, free: 8.816 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.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 (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000138/0.164, allocations: 107.2 kB / 486.9 MB, free: 8.703 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001426/0.1654, allocations: 0.9855 MB / 487.9 MB, free: 7.652 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1655, allocations: 0 / 487.9 MB, free: 7.652 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009136/0.1664, allocations: 0.7824 MB / 488.7 MB, free: 6.805 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004165/0.1668, allocations: 72.08 kB / 488.7 MB, free: 6.738 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002833/0.1696, allocations: 1.174 MB / 489.9 MB, free: 5.539 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003734/0.17, allocations: 0.7912 MB / 490.7 MB, free: 4.723 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001749/0.1702, allocations: 50.94 kB / 490.7 MB, free: 4.672 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.681e-05/0.1703, allocations: 27.38 kB / 490.8 MB, free: 4.645 MB / 366.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1703, allocations: 0 / 490.8 MB, free: 4.645 MB / 366.1 MB Notification: Performance of Templates: time 0.01039/0.1807, allocations: 6.22 MB / 497 MB, free: 14.47 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.sim & ./AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe 2>&1)