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.007404/0.007404, allocations: 102.1 kB / 15.73 MB, free: 6.062 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.001765/0.001765, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09618/0.09618, allocations: 22.32 MB / 312.9 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002268/0.002268, allocations: 63.89 kB / 436.5 MB, free: 12.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1156, allocations: 54.96 MB / 491.5 MB, free: 5.25 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.002043/0.1177, allocations: 0.5945 MB / 492.1 MB, free: 4.652 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002516/0.118, allocations: 63.89 kB / 492.2 MB, free: 4.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.922e-05/0.118, allocations: 0 / 492.2 MB, free: 4.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.562e-05/0.1181, allocations: 3.938 kB / 492.2 MB, free: 4.586 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.529e-05/0.1181, allocations: 7.875 kB / 492.2 MB, free: 4.578 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001635/0.1183, allocations: 15.97 kB / 492.2 MB, free: 4.562 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 8.828e-05/0.1184, allocations: 43.84 kB / 492.2 MB, free: 4.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.942e-05/0.1185, allocations: 8.188 kB / 492.2 MB, free: 4.512 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.796e-05/0.1185, allocations: 23.91 kB / 492.3 MB, free: 4.488 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.1186, allocations: 23.86 kB / 492.3 MB, free: 4.465 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.114e-05/0.1187, allocations: 0 / 492.3 MB, free: 4.465 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.247e-05/0.1187, allocations: 4 kB / 492.3 MB, free: 4.461 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.463e-05/0.1187, allocations: 11.98 kB / 492.3 MB, free: 4.449 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.003e-05/0.1188, allocations: 23.8 kB / 492.3 MB, free: 4.426 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 9.603e-05/0.1189, allocations: 35.77 kB / 492.4 MB, free: 4.391 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1189, allocations: 0 / 492.4 MB, free: 4.391 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1189, allocations: 0 / 492.4 MB, free: 4.391 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.1189, allocations: 0 / 492.4 MB, free: 4.391 MB / 366.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.0005239/0.1194, allocations: 367.3 kB / 492.7 MB, free: 3.984 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.1195, allocations: 15.97 kB / 492.7 MB, free: 3.969 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.67e-05/0.1195, allocations: 34.73 kB / 492.8 MB, free: 3.926 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.312e-05/0.1196, allocations: 8.891 kB / 492.8 MB, free: 3.918 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.1197, allocations: 172.3 kB / 492.9 MB, free: 3.711 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.1197, allocations: 4.375 kB / 493 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.609e-05/0.1198, allocations: 8.312 kB / 493 MB, free: 3.699 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001543/0.1199, allocations: 77.59 kB / 493 MB, free: 3.617 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.1199, allocations: 0 / 493 MB, free: 3.617 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.12, allocations: 0 / 493 MB, free: 3.617 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.12, allocations: 3.938 kB / 493 MB, free: 3.613 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.237e-05/0.1201, allocations: 35.92 kB / 493.1 MB, free: 3.578 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004911/0.1206, allocations: 304.7 kB / 493.4 MB, free: 3.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.1209, allocations: 98.72 kB / 493.5 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.193e-05/0.121, allocations: 36.78 kB / 493.5 MB, free: 3.086 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.121, allocations: 4 kB / 493.5 MB, free: 3.082 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.121, allocations: 34.56 kB / 493.5 MB, free: 3.039 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.243e-06/0.121, allocations: 0 / 493.5 MB, free: 3.039 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002758/0.1213, allocations: 105.6 kB / 493.6 MB, free: 2.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.1214, allocations: 55.41 kB / 493.7 MB, free: 2.863 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.978e-05/0.1215, allocations: 113.8 kB / 493.8 MB, free: 2.742 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.84e-05/0.1215, allocations: 29.7 kB / 493.8 MB, free: 2.707 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.387e-05/0.1216, allocations: 92.12 kB / 493.9 MB, free: 2.613 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.251e-05/0.1216, allocations: 35.69 kB / 494 MB, free: 2.578 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.8e-05/0.1217, allocations: 29.67 kB / 494 MB, free: 2.543 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.1218, allocations: 318.8 kB / 494.3 MB, free: 2.223 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.662e-05/0.1219, allocations: 24 kB / 494.3 MB, free: 2.199 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.883e-05/0.1219, allocations: 37.7 kB / 494.4 MB, free: 2.156 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000409/0.1223, allocations: 125.2 kB / 494.5 MB, free: 2.031 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.1224, allocations: 4 kB / 494.5 MB, free: 2.027 MB / 366.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001744/0.1225, allocations: 109.6 kB / 494.6 MB, free: 1.914 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.1226, allocations: 4.375 kB / 494.6 MB, free: 1.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.1226, allocations: 0 / 494.6 MB, free: 1.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.1226, allocations: 8.031 kB / 494.6 MB, free: 1.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.1227, allocations: 27.98 kB / 494.6 MB, free: 1.875 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.804e-06/0.1227, allocations: 4.047 kB / 494.6 MB, free: 1.871 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.183e-05/0.1228, allocations: 11.88 kB / 494.7 MB, free: 1.859 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.1228, allocations: 8 kB / 494.7 MB, free: 1.852 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.0002091/0.123, allocations: 130.9 kB / 494.8 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.707e-05/0.1231, allocations: 7.984 kB / 494.8 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001861/0.1232, allocations: 98.59 kB / 494.9 MB, free: 1.605 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1233, allocations: 4 kB / 494.9 MB, free: 1.602 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1233, allocations: 3.984 kB / 494.9 MB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.1233, allocations: 3.984 kB / 494.9 MB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002078/0.1235, allocations: 189.5 kB / 495.1 MB, free: 1.359 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1235, allocations: 0 / 495.1 MB, free: 1.359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001678/0.1237, allocations: 31.92 kB / 495.1 MB, free: 1.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1237, allocations: 0 / 495.1 MB, free: 1.328 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.1237, allocations: 4 kB / 495.1 MB, free: 1.324 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1237, allocations: 4 kB / 495.1 MB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1237, allocations: 0 / 495.1 MB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002755/0.124, allocations: 231.4 kB / 495.4 MB, free: 1.078 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.372e-05/0.1241, allocations: 89 kB / 495.4 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/0.1241, allocations: 0 / 495.4 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.608e-05/0.1241, allocations: 4 kB / 495.4 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.342e-05/0.1242, allocations: 11.92 kB / 495.5 MB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.1242, allocations: 12 kB / 495.5 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.537e-05/0.1243, allocations: 87.28 kB / 495.6 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1243, allocations: 0 / 495.6 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00022/0.1245, allocations: 11.94 kB / 495.6 MB, free: 0.8477 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.0005758/0.1251, allocations: 0.7475 MB / 496.3 MB, free: 72 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001846/0.1253, allocations: 76 kB / 496.4 MB, free: 15.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1253, allocations: 3.938 kB / 496.4 MB, free: 15.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.039e-05/0.1253, allocations: 35.88 kB / 496.4 MB, free: 15.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002141/0.1256, allocations: 8 kB / 496.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.1271, allocations: 1.485 MB / 497.9 MB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003323/0.1275, allocations: 0.6963 MB / 498.6 MB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.863e-05/0.1275, allocations: 0.6719 kB / 498.6 MB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.421e-05/0.1276, allocations: 31.42 kB / 498.6 MB, free: 13.62 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1276, allocations: 3.938 kB / 498.7 MB, free: 13.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02426/0.1518, allocations: 1.751 MB / 0.4887 GB, free: 11.94 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.725/7.877, allocations: 15.67 kB / 0.4887 GB, free: 11.93 MB / 382.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)