Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Modelling_principles.M1_TimeDomain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.Modelling_principles.M1_TimeDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M1_TimeDomain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Modelling_principles.M1_TimeDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M1_TimeDomain",fmuType="me",version="2.0",platforms={"static"}) [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09929/0.09929, allocations: 21.61 MB / 36.56 MB, free: 1.125 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 175.4 kB / 42.82 MB, free: 3.836 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 223.2 MB / 272.1 MB, free: 1.801 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008831/0.0008833, allocations: 114.8 kB / 328.7 MB, free: 12.13 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003118/0.0003116, allocations: 12 kB / 397.1 MB, free: 46.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09561/0.09594, allocations: 55.83 MB / 452.9 MB, free: 6.594 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3442/0.4402, allocations: 77.62 MB / 0.5181 GB, free: 12.96 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001812/0.4405, allocations: 70.16 kB / 0.5182 GB, free: 12.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001729/0.4422, allocations: 0.7805 MB / 0.5189 GB, free: 12.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4422, allocations: 0 / 0.5189 GB, free: 12.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.4422, allocations: 0 / 0.5189 GB, free: 12.62 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003096/0.4426, allocations: 379.4 kB / 0.5193 GB, free: 12.24 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.4426, allocations: 7.719 kB / 0.5193 GB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.574e-05/0.4426, allocations: 37.72 kB / 0.5194 GB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.584e-05/0.4427, allocations: 3.812 kB / 0.5194 GB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.736e-05/0.4428, allocations: 173.8 kB / 0.5195 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.4428, allocations: 3.938 kB / 0.5195 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.527e-05/0.4428, allocations: 7.969 kB / 0.5195 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001236/0.443, allocations: 67.59 kB / 0.5196 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.443, allocations: 0 / 0.5196 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.443, allocations: 11.58 kB / 0.5196 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.443, allocations: 0 / 0.5196 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.495e-05/0.4431, allocations: 32.62 kB / 0.5196 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003464/0.4434, allocations: 294.7 kB / 0.5199 GB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002452/0.4437, allocations: 101.9 kB / 0.52 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.4437, allocations: 3.781 kB / 0.52 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.723e-05/0.4437, allocations: 37.33 kB / 0.5201 GB, free: 11.62 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.4437, allocations: 0 / 0.5201 GB, free: 11.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.000223/0.444, allocations: 107.8 kB / 0.5202 GB, free: 11.58 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.415e-05/0.444, allocations: 51.41 kB / 0.5202 GB, free: 11.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.042e-05/0.4441, allocations: 108.7 kB / 0.5203 GB, free: 11.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.134e-05/0.4441, allocations: 29.7 kB / 0.5203 GB, free: 11.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.236e-05/0.4441, allocations: 95.58 kB / 0.5204 GB, free: 11.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.411e-05/0.4442, allocations: 38.89 kB / 0.5205 GB, free: 11.28 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.707e-06/0.4442, allocations: 0 / 0.5205 GB, free: 11.28 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.574e-05/0.4442, allocations: 318.3 kB / 0.5208 GB, free: 10.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.28e-05/0.4443, allocations: 19.84 kB / 0.5208 GB, free: 10.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.103e-05/0.4443, allocations: 39.22 kB / 0.5208 GB, free: 10.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.747e-05/0.4444, allocations: 26.58 kB / 0.5209 GB, free: 10.94 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.4444, allocations: 6.188 kB / 0.5209 GB, free: 10.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001297/0.4445, allocations: 106.2 kB / 0.521 GB, free: 10.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.4445, allocations: 7.281 kB / 0.521 GB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.4446, allocations: 3.953 kB / 0.521 GB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.4446, allocations: 0 / 0.521 GB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.4447, allocations: 30.88 kB / 0.521 GB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.004e-06/0.4447, allocations: 1.938 kB / 0.521 GB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.995e-05/0.4448, allocations: 7.594 kB / 0.521 GB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.4448, allocations: 3.438 kB / 0.521 GB, free: 10.89 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: Tw:VARIABLE(start = 10.0 fixed = true ) type: Real Ta:VARIABLE(start = 10.0 fixed = true ) type: Real I:VARIABLE(start = 0.0 fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00014/0.4449, allocations: 131.5 kB / 0.5211 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.583e-05/0.445, allocations: 10.48 kB / 0.5212 GB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001657/0.4451, allocations: 97.94 kB / 0.5212 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.4451, allocations: 3.953 kB / 0.5212 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.4451, allocations: 0 / 0.5212 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.4452, allocations: 5.266 kB / 0.5213 GB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001935/0.4454, allocations: 186.2 kB / 0.5214 GB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4454, allocations: 3.938 kB / 0.5214 GB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.4455, allocations: 30.12 kB / 0.5215 GB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.4456, allocations: 0 / 0.5215 GB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.4456, allocations: 7.781 kB / 0.5215 GB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.4456, allocations: 3.938 kB / 0.5215 GB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.4456, allocations: 3.953 kB / 0.5215 GB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001959/0.4458, allocations: 221.5 kB / 0.5217 GB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.191e-05/0.4458, allocations: 85.88 kB / 0.5218 GB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.533e-05/0.4458, allocations: 0 / 0.5218 GB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.717e-05/0.4459, allocations: 3.844 kB / 0.5218 GB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.393e-05/0.4459, allocations: 9.656 kB / 0.5218 GB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.4459, allocations: 5.438 kB / 0.5218 GB, free: 10.28 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.148e-05/0.446, allocations: 94.88 kB / 0.5219 GB, free: 10.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.446, allocations: 0 / 0.5219 GB, free: 10.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002101/0.4462, allocations: 18.56 kB / 0.5219 GB, free: 10.2 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (I,Ta,Tw) * 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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003521/0.4466, allocations: 0.7536 MB / 0.5226 GB, free: 9.527 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001513/0.4467, allocations: 75.11 kB / 0.5227 GB, free: 9.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4467, allocations: 0 / 0.5227 GB, free: 9.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.468e-05/0.4468, allocations: 29.33 kB / 0.5227 GB, free: 9.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001445/0.4469, allocations: 11.03 kB / 0.5227 GB, free: 9.516 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000873/0.4478, allocations: 0.7622 MB / 0.5235 GB, free: 8.969 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001524/0.448, allocations: 0.6998 MB / 0.5242 GB, free: 8.27 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.73e-05/0.448, allocations: 6 kB / 0.5242 GB, free: 8.266 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.713e-05/0.4481, allocations: 26.25 kB / 0.5242 GB, free: 8.254 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4481, allocations: 0 / 0.5242 GB, free: 8.254 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01159/0.4597, allocations: 1.489 MB / 0.5257 GB, free: 8.082 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001832/0.4599, allocations: 170.6 kB / 0.5258 GB, free: 7.836 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.46/1.92, allocations: 3.938 kB / 0.5258 GB, free: 7.832 MB / 362.7 MB (rm -f AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; mkfifo AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; head -c 1048576 < AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe >> ../files/AES_AES.Coursework.Modelling_principles.M1_TimeDomain.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Modelling_principles_M1_TimeDomain_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Modelling_principles_M1_TimeDomain.fmu > AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe 2>&1)