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.001041/0.001041, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001003/0.001003, allocations: 193.3 kB / 16.13 MB, free: 6.656 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.203/1.203, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1818/0.1818, allocations: 22.35 MB / 312.3 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 55.91 kB / 380.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2109/0.2121, allocations: 54.94 MB / 435.2 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.001369/0.2135, allocations: 0.6497 MB / 435.8 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001516/0.2137, allocations: 70.06 kB / 435.9 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.364e-05/0.2137, allocations: 3.938 kB / 435.9 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.402e-05/0.2137, allocations: 0 / 435.9 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.343e-05/0.2138, allocations: 7.266 kB / 435.9 MB, free: 39.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001118/0.2139, allocations: 12.75 kB / 435.9 MB, free: 39.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.703e-05/0.214, allocations: 43.62 kB / 435.9 MB, free: 39.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.052e-05/0.214, allocations: 6.75 kB / 435.9 MB, free: 39.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.163e-05/0.214, allocations: 27.83 kB / 436 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.672e-05/0.2141, allocations: 20.5 kB / 436 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.2141, allocations: 2.938 kB / 436 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.105e-05/0.2141, allocations: 2.781 kB / 436 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.676e-05/0.2142, allocations: 14.14 kB / 436 MB, free: 39.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.114e-05/0.2142, allocations: 24.78 kB / 436 MB, free: 39.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.874e-05/0.2142, allocations: 23.05 kB / 436.1 MB, free: 39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2143, allocations: 4 kB / 436.1 MB, free: 39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2143, allocations: 0 / 436.1 MB, free: 39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.086e-06/0.2143, allocations: 3.938 kB / 436.1 MB, free: 39 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.000323/0.2146, allocations: 367.1 kB / 436.4 MB, free: 38.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.2146, allocations: 20.27 kB / 436.4 MB, free: 38.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.246e-05/0.2147, allocations: 37.66 kB / 436.5 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.312e-05/0.2147, allocations: 7.781 kB / 436.5 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.47e-05/0.2148, allocations: 175 kB / 436.7 MB, free: 38.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.754e-06/0.2148, allocations: 11.31 kB / 436.7 MB, free: 38.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.897e-05/0.2148, allocations: 6.594 kB / 436.7 MB, free: 38.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.2149, allocations: 65.58 kB / 436.7 MB, free: 38.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.77e-06/0.2149, allocations: 0 / 436.7 MB, free: 38.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.2149, allocations: 0 / 436.7 MB, free: 38.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.2149, allocations: 6.844 kB / 436.7 MB, free: 38.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.235e-05/0.215, allocations: 34.28 kB / 436.8 MB, free: 38.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003005/0.2153, allocations: 301.3 kB / 437.1 MB, free: 38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002205/0.2155, allocations: 97.64 kB / 437.2 MB, free: 37.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.106e-05/0.2156, allocations: 35.61 kB / 437.2 MB, free: 37.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.2156, allocations: 2.719 kB / 437.2 MB, free: 37.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.546e-05/0.2156, allocations: 34.56 kB / 437.2 MB, free: 37.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.734e-06/0.2157, allocations: 112 / 437.2 MB, free: 37.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0001975/0.2159, allocations: 105.4 kB / 437.3 MB, free: 37.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2e-05/0.2159, allocations: 62.25 kB / 437.4 MB, free: 37.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.249e-05/0.2159, allocations: 109.4 kB / 437.5 MB, free: 37.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.305e-06/0.216, allocations: 29.7 kB / 437.5 MB, free: 37.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.842e-05/0.216, allocations: 90.48 kB / 437.6 MB, free: 37.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.094e-05/0.216, allocations: 44.27 kB / 437.7 MB, free: 37.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-05/0.216, allocations: 22.89 kB / 437.7 MB, free: 37.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.031e-05/0.2161, allocations: 321.8 kB / 438 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.358e-05/0.2161, allocations: 26.97 kB / 438 MB, free: 37.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.84e-05/0.2162, allocations: 34.84 kB / 438.1 MB, free: 37.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003327/0.2165, allocations: 127.2 kB / 438.2 MB, free: 37.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2165, allocations: 0 / 438.2 MB, free: 37.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001202/0.2166, allocations: 105.1 kB / 438.3 MB, free: 37.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.287e-06/0.2167, allocations: 7.031 kB / 438.3 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.2167, allocations: 6.906 kB / 438.3 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.2167, allocations: 3.984 kB / 438.3 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.2168, allocations: 33.14 kB / 438.3 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.678e-06/0.2168, allocations: 0 / 438.3 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.735e-05/0.2169, allocations: 10.75 kB / 438.4 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.2169, allocations: 2.875 kB / 438.4 MB, free: 37 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.0001025/0.217, allocations: 134.6 kB / 438.5 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.556e-05/0.217, allocations: 9.844 kB / 438.5 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001387/0.2172, allocations: 113.5 kB / 438.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.2172, allocations: 0 / 438.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/0.2172, allocations: 0 / 438.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.2172, allocations: 0 / 438.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/0.2173, allocations: 188.8 kB / 438.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.2173, allocations: 0 / 438.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001471/0.2175, allocations: 35.89 kB / 438.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2175, allocations: 2.688 kB / 438.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.747e-06/0.2175, allocations: 0 / 438.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.2175, allocations: 0 / 438.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2175, allocations: 0 / 438.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001713/0.2177, allocations: 224.8 kB / 439 MB, free: 36.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.565e-05/0.2177, allocations: 83.95 kB / 439.1 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.429e-05/0.2177, allocations: 6.906 kB / 439.1 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.534e-05/0.2178, allocations: 4 kB / 439.1 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.843e-05/0.2178, allocations: 9.906 kB / 439.2 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-06/0.2178, allocations: 6.906 kB / 439.2 MB, free: 36.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.38e-05/0.2178, allocations: 89.27 kB / 439.2 MB, free: 36.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2178, allocations: 0 / 439.2 MB, free: 36.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002075/0.2181, allocations: 18.78 kB / 439.3 MB, free: 36.21 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.0002789/0.2183, allocations: 0.749 MB / 440 MB, free: 35.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001102/0.2185, allocations: 63.69 kB / 440.1 MB, free: 35.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2185, allocations: 0 / 440.1 MB, free: 35.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.881e-05/0.2185, allocations: 36.12 kB / 440.1 MB, free: 35.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001962/0.2187, allocations: 11.84 kB / 440.1 MB, free: 35.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009131/0.2196, allocations: 1.52 MB / 441.6 MB, free: 34.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.925e-05/0.2197, allocations: 0.6958 MB / 442.3 MB, free: 33.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.971e-05/0.2198, allocations: 3.578 kB / 442.3 MB, free: 33.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.141e-05/0.2198, allocations: 32.16 kB / 442.4 MB, free: 33.43 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2198, allocations: 4 kB / 442.4 MB, free: 33.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009671/0.2295, allocations: 1.566 MB / 443.9 MB, free: 33.18 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001254/0.2296, allocations: 194.2 kB / 444.1 MB, free: 32.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.513/1.743, allocations: 3.938 kB / 444.1 MB, free: 32.93 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)