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/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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004947/0.004947, allocations: 99.52 kB / 15.73 MB, free: 6.039 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.001027/0.001027, allocations: 200.8 kB / 16.68 MB, free: 5.965 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1928/0.1928, allocations: 22.35 MB / 312.9 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 58.09 kB / 436.6 MB, free: 33.87 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1094, allocations: 54.97 MB / 491.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.001431/0.1109, allocations: 0.5857 MB / 492.1 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001859/0.1111, allocations: 71.89 kB / 492.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.181e-05/0.1112, allocations: 0 / 492.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.675e-05/0.1112, allocations: 3.938 kB / 492.2 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.384e-05/0.1113, allocations: 7.922 kB / 492.2 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001518/0.1114, allocations: 23.91 kB / 492.2 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.713e-05/0.1115, allocations: 43.84 kB / 492.3 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.46e-05/0.1116, allocations: 4.188 kB / 492.3 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.893e-05/0.1116, allocations: 19.92 kB / 492.3 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.326e-05/0.1117, allocations: 27.84 kB / 492.3 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.708e-05/0.1117, allocations: 4 kB / 492.3 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.926e-06/0.1117, allocations: 4 kB / 492.3 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.007e-05/0.1117, allocations: 11.92 kB / 492.3 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.087e-05/0.1118, allocations: 23.86 kB / 492.4 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.987e-05/0.1119, allocations: 32.05 kB / 492.4 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1119, allocations: 0 / 492.4 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.1119, allocations: 4 kB / 492.4 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.1119, allocations: 0 / 492.4 MB, free: 0.8438 MB / 350.1 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.0003824/0.1123, allocations: 375.2 kB / 492.8 MB, free: 440 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.1123, allocations: 8.031 kB / 492.8 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.619e-05/0.1124, allocations: 38.73 kB / 492.8 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.819e-05/0.1124, allocations: 8.891 kB / 492.8 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.447e-05/0.1125, allocations: 172.3 kB / 493 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.1125, allocations: 8.312 kB / 493 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.456e-05/0.1125, allocations: 4.375 kB / 493 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001283/0.1126, allocations: 69.59 kB / 493.1 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.1127, allocations: 0 / 493.1 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.1127, allocations: 8 kB / 493.1 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.1127, allocations: 0 / 493.1 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.267e-05/0.1128, allocations: 31.98 kB / 493.1 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004239/0.1132, allocations: 300.7 kB / 493.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002723/0.1135, allocations: 102.5 kB / 493.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.239e-05/0.1135, allocations: 36.84 kB / 493.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.1136, allocations: 4 kB / 493.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.265e-05/0.1136, allocations: 34.56 kB / 493.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.102e-06/0.1136, allocations: 0 / 493.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002529/0.1139, allocations: 105.8 kB / 493.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.026e-05/0.1139, allocations: 55.41 kB / 493.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.164e-05/0.114, allocations: 117.7 kB / 493.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.114, allocations: 29.7 kB / 493.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.752e-05/0.1141, allocations: 100.2 kB / 494 MB, free: 15.06 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.222e-05/0.1141, allocations: 39.62 kB / 494 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.95e-05/0.1142, allocations: 25.72 kB / 494 MB, free: 14.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1143, allocations: 318.8 kB / 494.4 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.981e-05/0.1143, allocations: 20.38 kB / 494.4 MB, free: 14.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.05e-05/0.1144, allocations: 33.7 kB / 494.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003861/0.1148, allocations: 135.4 kB / 494.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1148, allocations: 0 / 494.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001513/0.1149, allocations: 112.2 kB / 494.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.115, allocations: 6.656 kB / 494.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.115, allocations: 0 / 494.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.115, allocations: 7.984 kB / 494.7 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.1151, allocations: 31.92 kB / 494.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.1151, allocations: 4.031 kB / 494.7 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.137e-05/0.1152, allocations: 7.938 kB / 494.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.1152, allocations: 4 kB / 494.7 MB, free: 14.3 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: I:VARIABLE(start = 0.0 fixed = true ) type: Real Ta:VARIABLE(start = 10.0 fixed = true ) type: Real Tw:VARIABLE(start = 10.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001787/0.1154, allocations: 122.5 kB / 494.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.99e-05/0.1154, allocations: 11.94 kB / 494.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001808/0.1156, allocations: 109.9 kB / 495 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1156, allocations: 0 / 495 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1156, allocations: 0 / 495 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.1156, allocations: 7.984 kB / 495 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001957/0.1158, allocations: 189.5 kB / 495.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1159, allocations: 0 / 495.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.116, allocations: 27.98 kB / 495.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.116, allocations: 0 / 495.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.116, allocations: 0 / 495.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.116, allocations: 4 kB / 495.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1161, allocations: 0 / 495.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002508/0.1163, allocations: 235.3 kB / 495.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.229e-05/0.1164, allocations: 89 kB / 495.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.256e-05/0.1164, allocations: 4 kB / 495.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.661e-05/0.1165, allocations: 0 / 495.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.539e-05/0.1165, allocations: 11.98 kB / 495.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.569e-06/0.1165, allocations: 0 / 495.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.507e-05/0.1166, allocations: 87.28 kB / 495.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1166, allocations: 4 kB / 495.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002206/0.1168, allocations: 15.94 kB / 495.6 MB, free: 13.3 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005088/0.1173, allocations: 0.7525 MB / 496.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001582/0.1175, allocations: 67.95 kB / 496.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.1175, allocations: 0 / 496.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.902e-05/0.1175, allocations: 40.05 kB / 496.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000212/0.1178, allocations: 8.266 kB / 496.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001376/0.1191, allocations: 1.492 MB / 498 MB, free: 10.83 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002719/0.1194, allocations: 0.6962 MB / 498.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.296e-05/0.1195, allocations: 8.672 kB / 498.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.098e-05/0.1195, allocations: 27.42 kB / 498.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1195, allocations: 0 / 498.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01989/0.1394, allocations: 1.753 MB / 0.4887 GB, free: 8.387 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.536/7.675, allocations: 15.77 kB / 0.4887 GB, free: 8.371 MB / 366.1 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Modelling_principles.M1_TimeDomain_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 AES_AES_Coursework_Modelling_principles_M1_TimeDomain.fmu > AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe 2>&1)