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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 117.4 kB / 17.17 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00159/0.00159, allocations: 214.3 kB / 20.13 MB, free: 3.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.496/1.496, allocations: 230.6 MB / 253.5 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1713/0.1713, allocations: 22.93 MB / 332.5 MB, free: 2.625 MB / 254.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.Modelling_principles.M1_TimeDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M1_TimeDomain",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Modelling_principles.M1_TimeDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M1_TimeDomain",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002534/0.002534, allocations: 67.58 kB / 466.7 MB, free: 32.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1166, allocations: 59.26 MB / 0.5137 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.001826/0.1184, allocations: 0.586 MB / 0.5143 GB, free: 13.4 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002251/0.1186, allocations: 71.89 kB / 0.5143 GB, free: 13.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.521e-05/0.1187, allocations: 0 / 0.5143 GB, free: 13.33 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.78e-05/0.1187, allocations: 3.938 kB / 0.5143 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.31e-05/0.1188, allocations: 7.938 kB / 0.5143 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000145/0.1189, allocations: 23.91 kB / 0.5144 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.088e-05/0.119, allocations: 39.84 kB / 0.5144 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.537e-05/0.119, allocations: 4.188 kB / 0.5144 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.432e-05/0.1191, allocations: 23.91 kB / 0.5144 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.175e-05/0.1192, allocations: 27.86 kB / 0.5144 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.971e-05/0.1192, allocations: 0 / 0.5144 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.116e-05/0.1192, allocations: 4 kB / 0.5144 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.797e-05/0.1192, allocations: 3.984 kB / 0.5145 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.831e-05/0.1193, allocations: 35.8 kB / 0.5145 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.424e-05/0.1193, allocations: 27.77 kB / 0.5145 GB, free: 13.13 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1193, allocations: 4 kB / 0.5145 GB, free: 13.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1193, allocations: 0 / 0.5145 GB, free: 13.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.1193, allocations: 0 / 0.5145 GB, free: 13.12 MB / 382.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.0005138/0.1199, allocations: 367.2 kB / 0.5149 GB, free: 12.72 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.1199, allocations: 8.625 kB / 0.5149 GB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.534e-05/0.1199, allocations: 8.188 kB / 0.5149 GB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.921e-05/0.12, allocations: 42.67 kB / 0.5149 GB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.19e-05/0.12, allocations: 12.83 kB / 0.5149 GB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001587/0.1202, allocations: 168.3 kB / 0.5151 GB, free: 12.44 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.1202, allocations: 4.375 kB / 0.5151 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.169e-05/0.1202, allocations: 12.12 kB / 0.5151 GB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001546/0.1204, allocations: 65.66 kB / 0.5152 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1204, allocations: 0 / 0.5152 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.1204, allocations: 0 / 0.5152 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.768e-06/0.1204, allocations: 0 / 0.5152 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.449e-05/0.1205, allocations: 47.86 kB / 0.5152 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000474/0.121, allocations: 296.7 kB / 0.5155 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003358/0.1213, allocations: 98.53 kB / 0.5156 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.945e-05/0.1214, allocations: 36.97 kB / 0.5156 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.046e-05/0.1214, allocations: 0 / 0.5156 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.1214, allocations: 38.56 kB / 0.5157 GB, free: 11.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 9.92e-07/0.1214, allocations: 0 / 0.5157 GB, free: 11.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002789/0.1217, allocations: 109.6 kB / 0.5158 GB, free: 11.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.595e-05/0.1217, allocations: 51.41 kB / 0.5158 GB, free: 11.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.1218, allocations: 113.8 kB / 0.5159 GB, free: 11.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.1219, allocations: 29.7 kB / 0.516 GB, free: 11.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.94e-05/0.1219, allocations: 92.12 kB / 0.516 GB, free: 11.35 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.592e-05/0.122, allocations: 39.64 kB / 0.5161 GB, free: 11.31 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.622e-05/0.122, allocations: 25.72 kB / 0.5161 GB, free: 11.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.1222, allocations: 326.8 kB / 0.5164 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.684e-05/0.1222, allocations: 16 kB / 0.5164 GB, free: 10.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.53e-05/0.1223, allocations: 37.7 kB / 0.5165 GB, free: 10.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004363/0.1227, allocations: 129.9 kB / 0.5166 GB, free: 10.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1227, allocations: 0 / 0.5166 GB, free: 10.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001874/0.1229, allocations: 113.5 kB / 0.5167 GB, free: 10.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.1229, allocations: 4 kB / 0.5167 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.1229, allocations: 4 kB / 0.5167 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.1229, allocations: 0 / 0.5167 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.1231, allocations: 28.09 kB / 0.5167 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.413e-06/0.1231, allocations: 3.938 kB / 0.5167 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.815e-05/0.1231, allocations: 11.89 kB / 0.5168 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.1231, allocations: 7.938 kB / 0.5168 GB, free: 10.58 MB / 382.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.0002055/0.1233, allocations: 126.5 kB / 0.5169 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.884e-05/0.1234, allocations: 15.94 kB / 0.5169 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002012/0.1236, allocations: 94.05 kB / 0.517 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.1236, allocations: 4 kB / 0.517 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1236, allocations: 0 / 0.517 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1236, allocations: 7.984 kB / 0.517 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00024/0.1238, allocations: 189.5 kB / 0.5172 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.1238, allocations: 0 / 0.5172 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001743/0.124, allocations: 31.92 kB / 0.5172 GB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.124, allocations: 4 kB / 0.5172 GB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.124, allocations: 0 / 0.5172 GB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.124, allocations: 0 / 0.5172 GB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.124, allocations: 4 kB / 0.5172 GB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002842/0.1243, allocations: 227.3 kB / 0.5174 GB, free: 9.812 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.415e-05/0.1244, allocations: 89.06 kB / 0.5175 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.536e-05/0.1244, allocations: 0 / 0.5175 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.755e-05/0.1245, allocations: 0 / 0.5175 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.024e-05/0.1245, allocations: 8.031 kB / 0.5175 GB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-06/0.1245, allocations: 8 kB / 0.5175 GB, free: 9.691 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.59e-05/0.1246, allocations: 91.16 kB / 0.5176 GB, free: 9.602 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1246, allocations: 0 / 0.5176 GB, free: 9.602 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000234/0.1248, allocations: 16 kB / 0.5176 GB, free: 9.586 MB / 382.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.0006138/0.1254, allocations: 0.7564 MB / 0.5184 GB, free: 8.801 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001753/0.1256, allocations: 67.39 kB / 0.5184 GB, free: 8.738 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1256, allocations: 0 / 0.5184 GB, free: 8.738 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.761e-05/0.1256, allocations: 39.97 kB / 0.5185 GB, free: 8.699 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000218/0.1259, allocations: 8 kB / 0.5185 GB, free: 8.691 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/0.1276, allocations: 1.494 MB / 0.5199 GB, free: 7.113 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003721/0.128, allocations: 0.6924 MB / 0.5206 GB, free: 6.395 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.489e-05/0.128, allocations: 4.672 kB / 0.5206 GB, free: 6.391 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.234e-05/0.1281, allocations: 27.36 kB / 0.5207 GB, free: 6.363 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1281, allocations: 4 kB / 0.5207 GB, free: 6.359 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01885/0.1469, allocations: 1.786 MB / 0.5224 GB, free: 4.652 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.38/8.527, allocations: 21.39 kB / 0.5224 GB, free: 4.637 MB / 382.1 MB " [Timeout remaining time 651] (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/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Modelling_principles_M1_TimeDomain_fmu --startTime=0 --stopTime=100 --stepSize=0.001 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Modelling_principles_M1_TimeDomain.fmu > AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.389756360964384] Failed to read output from testmodel.py, exit status != 0: 8.654031491023488 8.676907424 8.553222681 Calling exit ...