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.005166/0.005166, allocations: 111.8 kB / 15.74 MB, free: 6.449 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.001176/0.001176, allocations: 195.6 kB / 16.67 MB, free: 6.352 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 4.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2049/0.2049, allocations: 22.35 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 72.14 kB / 436.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1025, allocations: 54.96 MB / 491.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.00162/0.1041, allocations: 0.5986 MB / 492.1 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001981/0.1044, allocations: 67.89 kB / 492.2 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.644e-05/0.1044, allocations: 0 / 492.2 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.751e-05/0.1045, allocations: 3.938 kB / 492.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.092e-05/0.1045, allocations: 11.91 kB / 492.2 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001499/0.1047, allocations: 19.86 kB / 492.2 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.234e-05/0.1048, allocations: 39.91 kB / 492.3 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.198e-05/0.1048, allocations: 12.12 kB / 492.3 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.679e-05/0.1049, allocations: 19.92 kB / 492.3 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.11e-05/0.105, allocations: 31.83 kB / 492.3 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.838e-05/0.105, allocations: 4 kB / 492.3 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.238e-06/0.105, allocations: 0 / 492.3 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.917e-05/0.105, allocations: 15.92 kB / 492.4 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.215e-05/0.1051, allocations: 15.88 kB / 492.4 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.521e-05/0.1051, allocations: 31.83 kB / 492.4 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1051, allocations: 4 kB / 492.4 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1052, allocations: 0 / 492.4 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.1052, allocations: 4 kB / 492.4 MB, free: 0.8477 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.0003866/0.1056, allocations: 364.1 kB / 492.8 MB, free: 456 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.1056, allocations: 12.03 kB / 492.8 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.04e-05/0.1056, allocations: 38.69 kB / 492.8 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.115e-05/0.1057, allocations: 8.844 kB / 492.8 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.242e-05/0.1058, allocations: 180.2 kB / 493 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.1058, allocations: 4.375 kB / 493 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.1058, allocations: 8.375 kB / 493 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.1059, allocations: 69.61 kB / 493.1 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.1059, allocations: 0 / 493.1 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.106, allocations: 0 / 493.1 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.106, allocations: 0 / 493.1 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.761e-05/0.106, allocations: 35.97 kB / 493.1 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004118/0.1065, allocations: 292.8 kB / 493.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002919/0.1068, allocations: 102.5 kB / 493.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.982e-05/0.1068, allocations: 32.84 kB / 493.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.1069, allocations: 0 / 493.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.1069, allocations: 34.56 kB / 493.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.022e-06/0.1069, allocations: 0 / 493.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002868/0.1072, allocations: 113.9 kB / 493.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.1072, allocations: 51.41 kB / 493.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.306e-05/0.1073, allocations: 121.9 kB / 493.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.1073, allocations: 33.64 kB / 493.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.298e-05/0.1074, allocations: 92.03 kB / 494 MB, free: 15.08 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.974e-05/0.1074, allocations: 43.39 kB / 494 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.551e-05/0.1075, allocations: 25.7 kB / 494 MB, free: 15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.1076, allocations: 322.8 kB / 494.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.756e-05/0.1076, allocations: 19.98 kB / 494.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.996e-05/0.1077, allocations: 41.7 kB / 494.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003798/0.1081, allocations: 124.6 kB / 494.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1081, allocations: 0 / 494.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001521/0.1082, allocations: 97.59 kB / 494.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.1083, allocations: 4 kB / 494.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1083, allocations: 8.031 kB / 494.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.1083, allocations: 0 / 494.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/0.1084, allocations: 35.92 kB / 494.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.1084, allocations: 0 / 494.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.316e-05/0.1085, allocations: 4 kB / 494.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.1085, allocations: 7.984 kB / 494.7 MB, free: 14.33 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.0001874/0.1087, allocations: 134.4 kB / 494.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.853e-05/0.1087, allocations: 4 kB / 494.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001757/0.1089, allocations: 109.9 kB / 494.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1089, allocations: 4 kB / 494.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1089, allocations: 0 / 494.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.1089, allocations: 0 / 494.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001802/0.1091, allocations: 189.4 kB / 495.1 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1091, allocations: 0 / 495.1 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.1093, allocations: 27.98 kB / 495.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.216e-06/0.1093, allocations: 7.984 kB / 495.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.869e-06/0.1093, allocations: 4 kB / 495.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.1093, allocations: 0 / 495.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1093, allocations: 0 / 495.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002435/0.1096, allocations: 235.8 kB / 495.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.59e-05/0.1097, allocations: 85.02 kB / 495.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.689e-05/0.1097, allocations: 4 kB / 495.5 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.578e-05/0.1097, allocations: 0 / 495.5 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.748e-05/0.1098, allocations: 8.125 kB / 495.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.1098, allocations: 15.94 kB / 495.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.425e-05/0.1098, allocations: 87.27 kB / 495.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1098, allocations: 0 / 495.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002268/0.1101, allocations: 19.94 kB / 495.6 MB, free: 13.31 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.000496/0.1106, allocations: 0.7475 MB / 496.3 MB, free: 12.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001685/0.1108, allocations: 71.92 kB / 496.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1108, allocations: 0 / 496.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.691e-05/0.1108, allocations: 27.98 kB / 496.4 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.0002109/0.111, allocations: 8 kB / 496.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.1124, allocations: 1.494 MB / 497.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.1127, allocations: 0.6963 MB / 498.6 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.378e-05/0.1127, allocations: 8.656 kB / 498.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.916e-05/0.1128, allocations: 23.44 kB / 498.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1128, allocations: 0 / 498.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01982/0.1326, allocations: 1.777 MB / 0.4887 GB, free: 8.387 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.282/7.414, allocations: 23.62 kB / 0.4887 GB, free: 8.363 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)