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.004661/0.004661, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.00116/0.00116, allocations: 189.7 kB / 16.67 MB, free: 5.977 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 / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2068/0.2068, allocations: 22.36 MB / 312.9 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 62.27 kB / 436.6 MB, free: 34.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1097, allocations: 54.96 MB / 491.5 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.001597/0.1113, allocations: 0.5869 MB / 492.1 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002057/0.1115, allocations: 79.88 kB / 492.2 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.348e-05/0.1116, allocations: 0 / 492.2 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.753e-05/0.1116, allocations: 3.938 kB / 492.2 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.437e-05/0.1117, allocations: 11.92 kB / 492.2 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001836/0.1119, allocations: 15.92 kB / 492.2 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.244e-05/0.112, allocations: 39.84 kB / 492.3 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.254e-05/0.1121, allocations: 4.188 kB / 492.3 MB, free: 1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.711e-05/0.1121, allocations: 19.92 kB / 492.3 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001/0.1123, allocations: 27.83 kB / 492.3 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.051e-05/0.1123, allocations: 4 kB / 492.3 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.085e-05/0.1123, allocations: 4 kB / 492.3 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.053e-05/0.1123, allocations: 7.938 kB / 492.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.638e-05/0.1124, allocations: 23.8 kB / 492.4 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.577e-05/0.1124, allocations: 39.83 kB / 492.4 MB, free: 0.875 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1125, allocations: 0 / 492.4 MB, free: 0.875 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1125, allocations: 0 / 492.4 MB, free: 0.875 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.263e-06/0.1125, allocations: 4 kB / 492.4 MB, free: 0.8711 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.0004538/0.1129, allocations: 368.1 kB / 492.8 MB, free: 476 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.113, allocations: 8.031 kB / 492.8 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.705e-05/0.113, allocations: 38.75 kB / 492.8 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.43e-05/0.1131, allocations: 12.84 kB / 492.8 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001042/0.1132, allocations: 180.2 kB / 493 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.1132, allocations: 4.312 kB / 493 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.359e-05/0.1132, allocations: 8.375 kB / 493 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001409/0.1134, allocations: 69.53 kB / 493.1 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1134, allocations: 0 / 493.1 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.1134, allocations: 8 kB / 493.1 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.1134, allocations: 0 / 493.1 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.071e-05/0.1135, allocations: 35.92 kB / 493.1 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005132/0.114, allocations: 300.8 kB / 493.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003129/0.1144, allocations: 94.55 kB / 493.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.949e-05/0.1144, allocations: 36.84 kB / 493.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.1145, allocations: 0 / 493.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.996e-05/0.1145, allocations: 38.69 kB / 493.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.1145, allocations: 4 kB / 493.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003144/0.1148, allocations: 105.5 kB / 493.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/0.1149, allocations: 55.41 kB / 493.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.115, allocations: 113.8 kB / 493.9 MB, free: 15.22 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.1151, allocations: 26.08 kB / 493.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.431e-05/0.1151, allocations: 96.14 kB / 494 MB, free: 15.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.498e-05/0.1152, allocations: 43.33 kB / 494 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.271e-05/0.1152, allocations: 25.72 kB / 494.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1154, allocations: 330.7 kB / 494.4 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.456e-05/0.1155, allocations: 19.98 kB / 494.4 MB, free: 14.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.104e-05/0.1155, allocations: 33.7 kB / 494.4 MB, free: 14.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004747/0.116, allocations: 119.9 kB / 494.5 MB, free: 14.51 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.116, allocations: 0 / 494.5 MB, free: 14.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001794/0.1162, allocations: 117.5 kB / 494.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.1162, allocations: 4 kB / 494.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.1162, allocations: 0 / 494.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.1163, allocations: 0 / 494.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.1164, allocations: 31.98 kB / 494.7 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.1164, allocations: 0 / 494.7 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.63e-05/0.1165, allocations: 8 kB / 494.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.1165, allocations: 0 / 494.7 MB, free: 14.34 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.0001989/0.1167, allocations: 138.4 kB / 494.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.99e-05/0.1167, allocations: 4 kB / 494.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001952/0.1169, allocations: 102 kB / 494.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.117, allocations: 0 / 494.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.117, allocations: 3.984 kB / 494.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.117, allocations: 4 kB / 494.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002051/0.1172, allocations: 193.4 kB / 495.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.1172, allocations: 4 kB / 495.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.1174, allocations: 31.92 kB / 495.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1174, allocations: 0 / 495.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.1174, allocations: 4 kB / 495.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.1174, allocations: 8 kB / 495.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.1174, allocations: 0 / 495.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002868/0.1177, allocations: 229.4 kB / 495.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.413e-05/0.1178, allocations: 81.02 kB / 495.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.775e-05/0.1178, allocations: 8 kB / 495.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.845e-05/0.1179, allocations: 4 kB / 495.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.298e-05/0.1179, allocations: 8.031 kB / 495.5 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-06/0.1179, allocations: 0 / 495.5 MB, free: 13.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.111e-05/0.118, allocations: 92.03 kB / 495.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.118, allocations: 0 / 495.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002311/0.1182, allocations: 19.94 kB / 495.6 MB, free: 13.33 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.0005657/0.1188, allocations: 0.7555 MB / 496.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001682/0.119, allocations: 68 kB / 496.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.119, allocations: 0 / 496.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.197e-05/0.1191, allocations: 39.92 kB / 496.5 MB, free: 12.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002303/0.1193, allocations: 4 kB / 496.5 MB, free: 12.44 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001757/0.1211, allocations: 1.494 MB / 498 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/0.1214, allocations: 0.6924 MB / 498.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.675e-05/0.1215, allocations: 4.656 kB / 498.7 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.4e-05/0.1215, allocations: 23.44 kB / 498.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of SimCode: time 6.02e-07/0.1215, allocations: 0 / 498.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01861/0.1401, allocations: 1.783 MB / 0.4887 GB, free: 8.395 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.479/7.619, allocations: 11.7 kB / 0.4888 GB, free: 8.383 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 & /home/hudson/saved_omc/OMSimulator/install/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)