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.0008821/0.0008822, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.0009811/0.0009811, allocations: 177.3 kB / 15.95 MB, free: 216 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.369/1.369, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1931/0.1931, allocations: 22.33 MB / 313.3 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003012/0.0003013, allocations: 12 kB / 381.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2906, allocations: 55.98 MB / 437.9 MB, free: 39.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.0004722/0.2911, allocations: 306.9 kB / 438.2 MB, free: 39.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001381/0.2913, allocations: 60.14 kB / 438.3 MB, free: 39.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.212e-05/0.2913, allocations: 0 / 438.3 MB, free: 39.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.538e-06/0.2913, allocations: 7.938 kB / 438.3 MB, free: 39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.166e-05/0.2914, allocations: 9.719 kB / 438.3 MB, free: 39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.641e-05/0.2915, allocations: 13.48 kB / 438.3 MB, free: 38.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.63e-05/0.2915, allocations: 29.42 kB / 438.3 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.927e-05/0.2916, allocations: 2.938 kB / 438.3 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.178e-05/0.2916, allocations: 19.34 kB / 438.3 MB, free: 38.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.436e-05/0.2917, allocations: 27.91 kB / 438.4 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.221e-05/0.2917, allocations: 2.781 kB / 438.4 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.948e-06/0.2917, allocations: 3.062 kB / 438.4 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.113e-05/0.2917, allocations: 14.36 kB / 438.4 MB, free: 38.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.541e-05/0.2917, allocations: 32.3 kB / 438.4 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 2.987e-05/0.2918, allocations: 13.58 kB / 438.4 MB, free: 38.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.2918, allocations: 0 / 438.4 MB, free: 38.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2918, allocations: 2.625 kB / 438.4 MB, free: 38.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.056e-06/0.2918, allocations: 0 / 438.4 MB, free: 38.91 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.000257/0.292, allocations: 363.4 kB / 438.8 MB, free: 38.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.045e-05/0.2921, allocations: 14.62 kB / 438.8 MB, free: 38.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.406e-05/0.2921, allocations: 37.94 kB / 438.8 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.07e-05/0.2921, allocations: 9.344 kB / 438.8 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.203e-05/0.2922, allocations: 173.5 kB / 439 MB, free: 38.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.315e-06/0.2922, allocations: 6.5 kB / 439 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.735e-05/0.2922, allocations: 6.969 kB / 439 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.681e-05/0.2923, allocations: 61.25 kB / 439.1 MB, free: 38.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.2924, allocations: 3.953 kB / 439.1 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.845e-06/0.2924, allocations: 4 kB / 439.1 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.2924, allocations: 3.812 kB / 439.1 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.587e-05/0.2924, allocations: 37.78 kB / 439.1 MB, free: 38.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002656/0.2927, allocations: 288.1 kB / 439.4 MB, free: 37.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002019/0.2929, allocations: 103.5 kB / 439.5 MB, free: 37.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.292e-05/0.2929, allocations: 0 / 439.5 MB, free: 37.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.118e-05/0.293, allocations: 38.56 kB / 439.6 MB, free: 37.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 8.82e-07/0.293, allocations: 2.719 kB / 439.6 MB, free: 37.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0001741/0.2931, allocations: 103.9 kB / 439.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.866e-05/0.2932, allocations: 54.34 kB / 439.7 MB, free: 37.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.897e-05/0.2932, allocations: 119.6 kB / 439.8 MB, free: 37.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.644e-06/0.2932, allocations: 29.7 kB / 439.9 MB, free: 37.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.69e-05/0.2933, allocations: 90.52 kB / 439.9 MB, free: 37.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.716e-05/0.2933, allocations: 41.34 kB / 440 MB, free: 37.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.857e-06/0.2933, allocations: 0 / 440 MB, free: 37.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.482e-05/0.2933, allocations: 321.9 kB / 440.3 MB, free: 37.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.972e-05/0.2934, allocations: 27.22 kB / 440.3 MB, free: 37.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.381e-05/0.2934, allocations: 35.52 kB / 440.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.393e-05/0.2935, allocations: 27.58 kB / 440.4 MB, free: 37.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2935, allocations: 3.938 kB / 440.4 MB, free: 37.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001121/0.2936, allocations: 107.8 kB / 440.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.837e-06/0.2936, allocations: 3.25 kB / 440.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.2936, allocations: 7.188 kB / 440.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.076e-06/0.2936, allocations: 0 / 440.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.2937, allocations: 29.5 kB / 440.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.2938, allocations: 0 / 440.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.612e-05/0.2938, allocations: 10.47 kB / 440.5 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.2938, allocations: 6.766 kB / 440.6 MB, free: 37 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.0001005/0.2939, allocations: 127 kB / 440.7 MB, free: 36.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.332e-05/0.2939, allocations: 10.27 kB / 440.7 MB, free: 36.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001295/0.2941, allocations: 108.9 kB / 440.8 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.2941, allocations: 2.656 kB / 440.8 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.2941, allocations: 0 / 440.8 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.2941, allocations: 3.984 kB / 440.8 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/0.2942, allocations: 180.1 kB / 441 MB, free: 36.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2942, allocations: 4 kB / 441 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001371/0.2944, allocations: 28.11 kB / 441 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.2944, allocations: 6.688 kB / 441 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.2944, allocations: 11.89 kB / 441 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2944, allocations: 0 / 441 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.2944, allocations: 0 / 441 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001597/0.2946, allocations: 220 kB / 441.2 MB, free: 36.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.799e-05/0.2946, allocations: 84.39 kB / 441.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.2946, allocations: 2.594 kB / 441.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.265e-05/0.2947, allocations: 7.953 kB / 441.3 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.706e-05/0.2947, allocations: 9.984 kB / 441.3 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.2947, allocations: 2.812 kB / 441.3 MB, free: 36.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.528e-05/0.2947, allocations: 93.09 kB / 441.4 MB, free: 36.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2947, allocations: 0 / 441.4 MB, free: 36.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002037/0.295, allocations: 16.34 kB / 441.5 MB, free: 36.22 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.0002614/0.2952, allocations: 0.7505 MB / 442.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001039/0.2953, allocations: 65.86 kB / 442.3 MB, free: 35.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.2953, allocations: 0 / 442.3 MB, free: 35.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.846e-05/0.2954, allocations: 37.02 kB / 442.3 MB, free: 35.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001195/0.2955, allocations: 14.16 kB / 442.3 MB, free: 35.49 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006362/0.2962, allocations: 0.7639 MB / 443.1 MB, free: 34.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.621e-05/0.2962, allocations: 0.6988 MB / 443.8 MB, free: 34.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.759e-05/0.2963, allocations: 6.938 kB / 443.8 MB, free: 34.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.623e-05/0.2963, allocations: 28.22 kB / 443.8 MB, free: 34.17 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2963, allocations: 0 / 443.8 MB, free: 34.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.015/3.311, allocations: 1.466 MB / 445.3 MB, free: 34.02 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001815/3.311, allocations: 173.1 kB / 445.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.97/5.282, allocations: 0 / 445.4 MB, free: 33.77 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: