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.0009734/0.0009738, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001171/0.001171, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 223.2 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2355/0.2355, allocations: 22.35 MB / 313.4 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003923/0.0003924, allocations: 8 kB / 382 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3365, allocations: 55.98 MB / 438 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.0007337/0.3373, allocations: 309.1 kB / 438.3 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002054/0.3375, allocations: 58.16 kB / 438.4 MB, free: 39.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.385e-05/0.3376, allocations: 0 / 438.4 MB, free: 39.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.854e-05/0.3376, allocations: 7.938 kB / 438.4 MB, free: 39.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.355e-05/0.3377, allocations: 9.844 kB / 438.4 MB, free: 39.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001519/0.3378, allocations: 15.08 kB / 438.4 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.675e-05/0.3379, allocations: 31.97 kB / 438.4 MB, free: 39.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.993e-05/0.338, allocations: 8.688 kB / 438.4 MB, free: 39.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.14e-05/0.338, allocations: 26.05 kB / 438.5 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.277e-05/0.3381, allocations: 19.92 kB / 438.5 MB, free: 39.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.715e-05/0.3381, allocations: 2.562 kB / 438.5 MB, free: 39.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.137e-05/0.3381, allocations: 2.906 kB / 438.5 MB, free: 39.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.715e-05/0.3382, allocations: 18.11 kB / 438.5 MB, free: 39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.801e-05/0.3382, allocations: 28.55 kB / 438.5 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.662e-05/0.3383, allocations: 23.05 kB / 438.6 MB, free: 38.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3383, allocations: 0 / 438.6 MB, free: 38.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3383, allocations: 3.938 kB / 438.6 MB, free: 38.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.3383, allocations: 0 / 438.6 MB, free: 38.95 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.0003794/0.3387, allocations: 360.8 kB / 438.9 MB, free: 38.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.3387, allocations: 14.97 kB / 438.9 MB, free: 38.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.92e-05/0.3388, allocations: 34.56 kB / 439 MB, free: 38.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.683e-05/0.3388, allocations: 9.531 kB / 439 MB, free: 38.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.207e-05/0.3389, allocations: 168.6 kB / 439.1 MB, free: 38.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.3389, allocations: 6.281 kB / 439.2 MB, free: 38.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.605e-05/0.3389, allocations: 7.062 kB / 439.2 MB, free: 38.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001442/0.3391, allocations: 69.5 kB / 439.2 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.3391, allocations: 3.953 kB / 439.2 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.357e-06/0.3391, allocations: 0 / 439.2 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.3391, allocations: 3.875 kB / 439.2 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.982e-05/0.3392, allocations: 35.22 kB / 439.3 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003483/0.3396, allocations: 288.6 kB / 439.6 MB, free: 37.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002414/0.3398, allocations: 102.1 kB / 439.7 MB, free: 37.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.09e-05/0.3399, allocations: 36.64 kB / 439.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.3399, allocations: 0 / 439.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.552e-05/0.3399, allocations: 37.38 kB / 439.7 MB, free: 37.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.041e-06/0.3399, allocations: 0 / 439.7 MB, free: 37.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002231/0.3402, allocations: 109 kB / 439.8 MB, free: 37.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.693e-05/0.3402, allocations: 54.69 kB / 439.9 MB, free: 37.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.352e-05/0.3403, allocations: 115.7 kB / 440 MB, free: 37.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.113e-05/0.3403, allocations: 25.81 kB / 440 MB, free: 37.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.388e-05/0.3403, allocations: 98.44 kB / 440.1 MB, free: 37.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.17e-05/0.3404, allocations: 38.48 kB / 440.2 MB, free: 37.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.851e-06/0.3404, allocations: 8 kB / 440.2 MB, free: 37.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.02e-05/0.3405, allocations: 321.9 kB / 440.5 MB, free: 37.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.301e-05/0.3405, allocations: 12.72 kB / 440.5 MB, free: 37.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.267e-05/0.3405, allocations: 38.91 kB / 440.5 MB, free: 37.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.526e-05/0.3406, allocations: 26.5 kB / 440.6 MB, free: 37.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3406, allocations: 3.031 kB / 440.6 MB, free: 37.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001299/0.3407, allocations: 111.5 kB / 440.7 MB, free: 37.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.3408, allocations: 10.06 kB / 440.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3408, allocations: 0 / 440.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.3408, allocations: 2.875 kB / 440.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.3409, allocations: 36.03 kB / 440.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.912e-06/0.3409, allocations: 0 / 440.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.685e-05/0.341, allocations: 6.469 kB / 440.7 MB, free: 37.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.341, allocations: 2.625 kB / 440.7 MB, free: 37.03 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: Tw:VARIABLE(start = 10.0 fixed = true ) type: Real Ta:VARIABLE(start = 10.0 fixed = true ) type: Real I:VARIABLE(start = 0.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001415/0.3411, allocations: 122.5 kB / 440.8 MB, free: 36.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.661e-05/0.3412, allocations: 18.34 kB / 440.9 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001647/0.3413, allocations: 112.9 kB / 441 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.3414, allocations: 2.594 kB / 441 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3414, allocations: 0 / 441 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3414, allocations: 0 / 441 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000139/0.3415, allocations: 179.8 kB / 441.1 MB, free: 36.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3415, allocations: 0 / 441.1 MB, free: 36.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001526/0.3417, allocations: 28.5 kB / 441.2 MB, free: 36.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3417, allocations: 4 kB / 441.2 MB, free: 36.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.3417, allocations: 6.516 kB / 441.2 MB, free: 36.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3417, allocations: 0 / 441.2 MB, free: 36.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.3417, allocations: 3.281 kB / 441.2 MB, free: 36.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002044/0.3419, allocations: 222.2 kB / 441.4 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.491e-05/0.342, allocations: 83.8 kB / 441.5 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.342, allocations: 4 kB / 441.5 MB, free: 36.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.275e-05/0.3421, allocations: 3.953 kB / 441.5 MB, free: 36.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.171e-05/0.3421, allocations: 12.98 kB / 441.5 MB, free: 36.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-06/0.3421, allocations: 4 kB / 441.5 MB, free: 36.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.471e-05/0.3421, allocations: 89.14 kB / 441.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3421, allocations: 0 / 441.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002148/0.3424, allocations: 18.31 kB / 441.6 MB, free: 36.26 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000343/0.3427, allocations: 0.7569 MB / 442.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001319/0.3428, allocations: 68.7 kB / 442.4 MB, free: 35.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3429, allocations: 0 / 442.4 MB, free: 35.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.114e-05/0.3429, allocations: 32.2 kB / 442.5 MB, free: 35.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002268/0.3431, allocations: 9.984 kB / 442.5 MB, free: 35.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007612/0.3439, allocations: 0.6156 MB / 443.1 MB, free: 35.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001354/0.3441, allocations: 0.6962 MB / 443.8 MB, free: 34.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.34e-05/0.3441, allocations: 11.06 kB / 443.8 MB, free: 34.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.246e-05/0.3441, allocations: 21.31 kB / 443.8 MB, free: 34.35 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3441, allocations: 0 / 443.8 MB, free: 34.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01062/0.3548, allocations: 1.485 MB / 445.3 MB, free: 34.2 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000136/0.3549, allocations: 180.3 kB / 445.5 MB, free: 33.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.651/2.006, allocations: 0 / 445.5 MB, free: 33.95 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/linux/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) Environment - environmentSimulation: