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.001161/0.001161, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001181/0.001181, allocations: 191.5 kB / 16.25 MB, free: 6.152 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.209/1.209, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1757/0.1757, allocations: 22.36 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 59.91 kB / 380.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.2281, allocations: 54.94 MB / 435.3 MB, free: 39.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.001379/0.2295, allocations: 0.6485 MB / 436 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00015/0.2297, allocations: 68.98 kB / 436.1 MB, free: 39.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.133e-05/0.2297, allocations: 0 / 436.1 MB, free: 39.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.778e-05/0.2298, allocations: 0 / 436.1 MB, free: 39.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.805e-05/0.2298, allocations: 3.938 kB / 436.1 MB, free: 39.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001217/0.2299, allocations: 18 kB / 436.1 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.293e-05/0.23, allocations: 45.03 kB / 436.1 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.555e-05/0.2301, allocations: 11.19 kB / 436.1 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.31e-05/0.2301, allocations: 23.31 kB / 436.2 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.138e-05/0.2302, allocations: 20.3 kB / 436.2 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.465e-05/0.2302, allocations: 2.906 kB / 436.2 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.408e-06/0.2302, allocations: 2.906 kB / 436.2 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.55e-05/0.2302, allocations: 11.22 kB / 436.2 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.508e-05/0.2302, allocations: 24.92 kB / 436.2 MB, free: 39.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.871e-05/0.2303, allocations: 27.39 kB / 436.2 MB, free: 39.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.2303, allocations: 7.375 kB / 436.3 MB, free: 39.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.2303, allocations: 2.938 kB / 436.3 MB, free: 39.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.2303, allocations: 7.875 kB / 436.3 MB, free: 39.23 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.000317/0.2306, allocations: 362.9 kB / 436.6 MB, free: 38.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.2307, allocations: 12.22 kB / 436.6 MB, free: 38.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.392e-05/0.2307, allocations: 37.59 kB / 436.7 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.327e-05/0.2307, allocations: 7.75 kB / 436.7 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.399e-05/0.2308, allocations: 171.1 kB / 436.8 MB, free: 38.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.908e-06/0.2308, allocations: 10.55 kB / 436.8 MB, free: 38.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.94e-05/0.2308, allocations: 7.219 kB / 436.9 MB, free: 38.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001066/0.2309, allocations: 61.66 kB / 436.9 MB, free: 38.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.48e-06/0.231, allocations: 3.938 kB / 436.9 MB, free: 38.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-06/0.231, allocations: 4 kB / 436.9 MB, free: 38.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.547e-06/0.231, allocations: 2.812 kB / 436.9 MB, free: 38.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.222e-05/0.231, allocations: 34.55 kB / 437 MB, free: 38.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002839/0.2313, allocations: 300.8 kB / 437.3 MB, free: 38.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002196/0.2316, allocations: 103.5 kB / 437.4 MB, free: 38.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.687e-05/0.2316, allocations: 39.19 kB / 437.4 MB, free: 38.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.2316, allocations: 2.906 kB / 437.4 MB, free: 38.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.047e-05/0.2317, allocations: 30.56 kB / 437.4 MB, free: 38.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.2317, allocations: 112 / 437.4 MB, free: 38.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0001842/0.2319, allocations: 113.5 kB / 437.5 MB, free: 38.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.117e-05/0.2319, allocations: 54 kB / 437.6 MB, free: 38.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.108e-05/0.2319, allocations: 114.4 kB / 437.7 MB, free: 37.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.005e-06/0.2319, allocations: 25.7 kB / 437.7 MB, free: 37.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.951e-05/0.232, allocations: 93.53 kB / 437.8 MB, free: 37.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.985e-05/0.232, allocations: 41.61 kB / 437.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.167e-05/0.232, allocations: 23.03 kB / 437.9 MB, free: 37.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.111e-05/0.2321, allocations: 324.7 kB / 438.2 MB, free: 37.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.173e-05/0.2321, allocations: 20.02 kB / 438.2 MB, free: 37.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.718e-05/0.2322, allocations: 35.66 kB / 438.3 MB, free: 37.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003184/0.2325, allocations: 127.9 kB / 438.4 MB, free: 37.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2325, allocations: 0 / 438.4 MB, free: 37.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001175/0.2326, allocations: 111.4 kB / 438.5 MB, free: 37.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.2326, allocations: 7.5 kB / 438.5 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.2327, allocations: 0 / 438.5 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.2327, allocations: 0 / 438.5 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.2328, allocations: 28.64 kB / 438.5 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.2328, allocations: 2.688 kB / 438.5 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.76e-05/0.2328, allocations: 10.66 kB / 438.5 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/0.2328, allocations: 6.688 kB / 438.5 MB, free: 37.25 MB / 350.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.0001127/0.233, allocations: 131.7 kB / 438.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.539e-05/0.233, allocations: 7.594 kB / 438.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001432/0.2331, allocations: 108.5 kB / 438.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.2332, allocations: 2.938 kB / 438.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.2332, allocations: 0 / 438.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.2332, allocations: 7.219 kB / 438.8 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001249/0.2333, allocations: 189.5 kB / 439 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2333, allocations: 4 kB / 439 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001467/0.2335, allocations: 27.31 kB / 439 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.2335, allocations: 6.078 kB / 439 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.2335, allocations: 4 kB / 439 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.2335, allocations: 0 / 439 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2335, allocations: 0 / 439 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001724/0.2337, allocations: 222.5 kB / 439.2 MB, free: 36.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.958e-05/0.2337, allocations: 83.95 kB / 439.3 MB, free: 36.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.614e-05/0.2337, allocations: 10.75 kB / 439.3 MB, free: 36.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.471e-05/0.2338, allocations: 3.938 kB / 439.3 MB, free: 36.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.524e-05/0.2338, allocations: 10.05 kB / 439.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.01e-06/0.2338, allocations: 2.781 kB / 439.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.535e-05/0.2338, allocations: 93.59 kB / 439.4 MB, free: 36.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2338, allocations: 0 / 439.4 MB, free: 36.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002094/0.2341, allocations: 18.94 kB / 439.5 MB, free: 36.46 MB / 350.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.0002941/0.2344, allocations: 0.7448 MB / 440.2 MB, free: 35.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001257/0.2345, allocations: 72.59 kB / 440.3 MB, free: 35.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2345, allocations: 0 / 440.3 MB, free: 35.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.682e-05/0.2345, allocations: 38.19 kB / 440.3 MB, free: 35.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002006/0.2348, allocations: 8.516 kB / 440.3 MB, free: 35.72 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009438/0.2357, allocations: 1.524 MB / 441.8 MB, free: 34.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.168e-05/0.2358, allocations: 0.692 MB / 442.5 MB, free: 33.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.267e-05/0.2358, allocations: 10.84 kB / 442.5 MB, free: 33.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.192e-05/0.2359, allocations: 24.55 kB / 442.6 MB, free: 33.67 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2359, allocations: 0 / 442.6 MB, free: 33.67 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01143/0.2473, allocations: 1.627 MB / 444.2 MB, free: 33.43 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001369/0.2475, allocations: 194.6 kB / 444.4 MB, free: 33.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.658/1.905, allocations: 0 / 444.4 MB, free: 33.17 MB / 350.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)