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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 109.3 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.09675/0.09675, allocations: 22.69 MB / 325.4 MB, free: 3.547 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 67.89 kB / 457.2 MB, free: 1.781 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1236, allocations: 58.02 MB / 0.5031 GB, free: 7.648 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.001766/0.1253, allocations: 0.5869 MB / 0.5037 GB, free: 7.059 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002262/0.1255, allocations: 63.95 kB / 0.5037 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.624e-05/0.1256, allocations: 4 kB / 0.5037 GB, free: 6.992 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.711e-05/0.1256, allocations: 3.938 kB / 0.5038 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.762e-05/0.1257, allocations: 15.86 kB / 0.5038 GB, free: 6.973 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001535/0.1258, allocations: 11.97 kB / 0.5038 GB, free: 6.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.658e-05/0.1259, allocations: 39.84 kB / 0.5038 GB, free: 6.922 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.124e-05/0.126, allocations: 8.188 kB / 0.5038 GB, free: 6.914 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.052e-05/0.126, allocations: 15.92 kB / 0.5038 GB, free: 6.898 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.569e-05/0.1261, allocations: 35.83 kB / 0.5039 GB, free: 6.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.496e-05/0.1261, allocations: 3.938 kB / 0.5039 GB, free: 6.859 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.596e-06/0.1261, allocations: 8 kB / 0.5039 GB, free: 6.852 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.959e-05/0.1261, allocations: 7.938 kB / 0.5039 GB, free: 6.844 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.787e-05/0.1262, allocations: 23.86 kB / 0.5039 GB, free: 6.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.226e-05/0.1263, allocations: 31.77 kB / 0.5039 GB, free: 6.789 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1263, allocations: 0 / 0.5039 GB, free: 6.789 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.1263, allocations: 0 / 0.5039 GB, free: 6.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.1263, allocations: 0 / 0.5039 GB, free: 6.789 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.0005237/0.1268, allocations: 371.2 kB / 0.5043 GB, free: 6.379 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.1268, allocations: 16.03 kB / 0.5043 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.295e-05/0.1269, allocations: 38.73 kB / 0.5044 GB, free: 6.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.791e-05/0.1269, allocations: 8.891 kB / 0.5044 GB, free: 6.309 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/0.1271, allocations: 172.3 kB / 0.5045 GB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.1271, allocations: 8.297 kB / 0.5045 GB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.612e-05/0.1271, allocations: 8.375 kB / 0.5045 GB, free: 6.086 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001566/0.1273, allocations: 73.55 kB / 0.5046 GB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.1273, allocations: 0 / 0.5046 GB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.1273, allocations: 0 / 0.5046 GB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1273, allocations: 0 / 0.5046 GB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.188e-05/0.1274, allocations: 35.98 kB / 0.5046 GB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004404/0.1278, allocations: 300.7 kB / 0.5049 GB, free: 5.629 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002803/0.1281, allocations: 94.48 kB / 0.505 GB, free: 5.527 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.65e-05/0.1281, allocations: 28.84 kB / 0.505 GB, free: 5.496 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.551e-05/0.1282, allocations: 4 kB / 0.5051 GB, free: 5.492 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.1282, allocations: 38.56 kB / 0.5051 GB, free: 5.445 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.192e-06/0.1282, allocations: 0 / 0.5051 GB, free: 5.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002479/0.1284, allocations: 101.8 kB / 0.5052 GB, free: 5.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.1285, allocations: 59.41 kB / 0.5052 GB, free: 5.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.31e-05/0.1286, allocations: 113.8 kB / 0.5054 GB, free: 5.148 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.1286, allocations: 25.81 kB / 0.5054 GB, free: 5.117 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.036e-05/0.1287, allocations: 92.08 kB / 0.5055 GB, free: 5.023 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.387e-05/0.1287, allocations: 43.67 kB / 0.5055 GB, free: 4.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.397e-05/0.1287, allocations: 29.67 kB / 0.5055 GB, free: 4.945 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1289, allocations: 322.8 kB / 0.5058 GB, free: 4.621 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.368e-05/0.1289, allocations: 23.98 kB / 0.5059 GB, free: 4.598 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.479e-05/0.129, allocations: 42.08 kB / 0.5059 GB, free: 4.551 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003719/0.1294, allocations: 117.5 kB / 0.506 GB, free: 4.434 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1294, allocations: 384 / 0.506 GB, free: 4.434 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000183/0.1295, allocations: 109.6 kB / 0.5061 GB, free: 4.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.1296, allocations: 4 kB / 0.5061 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.1296, allocations: 0 / 0.5061 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.1296, allocations: 7.938 kB / 0.5061 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.1297, allocations: 35.92 kB / 0.5062 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.1297, allocations: 3.984 kB / 0.5062 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.618e-05/0.1298, allocations: 11.94 kB / 0.5062 GB, free: 4.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.1298, allocations: 4.031 kB / 0.5062 GB, free: 4.254 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.0001862/0.13, allocations: 134.5 kB / 0.5063 GB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.469e-05/0.13, allocations: 0 / 0.5063 GB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001965/0.1302, allocations: 118 kB / 0.5064 GB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1302, allocations: 4 kB / 0.5064 GB, free: 3.988 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1302, allocations: 4 kB / 0.5064 GB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1302, allocations: 0 / 0.5064 GB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000207/0.1304, allocations: 189.5 kB / 0.5066 GB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1304, allocations: 0 / 0.5066 GB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001638/0.1306, allocations: 27.98 kB / 0.5066 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.1306, allocations: 0 / 0.5066 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.1306, allocations: 4 kB / 0.5066 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1306, allocations: 0 / 0.5066 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1306, allocations: 0 / 0.5066 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002686/0.1309, allocations: 235.3 kB / 0.5069 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.474e-05/0.1309, allocations: 85.06 kB / 0.507 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.695e-05/0.1309, allocations: 4 kB / 0.507 GB, free: 3.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.613e-05/0.131, allocations: 0 / 0.507 GB, free: 3.367 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.47e-05/0.131, allocations: 8.031 kB / 0.507 GB, free: 3.359 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.131, allocations: 4 kB / 0.507 GB, free: 3.355 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.213e-05/0.1311, allocations: 91.27 kB / 0.5071 GB, free: 3.266 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1311, allocations: 0 / 0.5071 GB, free: 3.266 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002202/0.1313, allocations: 15.94 kB / 0.5071 GB, free: 3.25 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.0005385/0.1318, allocations: 0.7592 MB / 0.5078 GB, free: 2.461 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001638/0.132, allocations: 55.98 kB / 0.5079 GB, free: 2.406 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.132, allocations: 0 / 0.5079 GB, free: 2.406 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.285e-05/0.1321, allocations: 35.92 kB / 0.5079 GB, free: 2.371 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002115/0.1323, allocations: 4 kB / 0.5079 GB, free: 2.367 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/0.1338, allocations: 1.509 MB / 0.5094 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.1341, allocations: 0.6924 MB / 0.5101 GB, free: 56 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.5e-05/0.1341, allocations: 8.656 kB / 0.5101 GB, free: 48 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.051e-05/0.1342, allocations: 23.38 kB / 0.5101 GB, free: 24 kB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1342, allocations: 7.938 kB / 0.5101 GB, free: 16 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2323/0.3665, allocations: 1.751 MB / 0.5118 GB, free: 15.15 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.881/8.247, allocations: 3.547 kB / 0.5118 GB, free: 15.15 MB / 382.1 MB " [Timeout remaining time 652] (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 sys.exit(0), Time elapsed: 11.605088224168867] Failed to read output from testmodel.py, exit status != 0: 8.310725073795766 8.321580233 8.192778425 Calling exit ...