Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.OOM_Intro.HelloWorld.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.OOM_Intro.HelloWorld,fileNamePrefix="AES_AES_Coursework_OOM_Intro_HelloWorld",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.OOM_Intro.HelloWorld,fileNamePrefix="AES_AES_Coursework_OOM_Intro_HelloWorld",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.001358/0.001358, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001681/0.001681, allocations: 194 kB / 16.53 MB, free: 6.664 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.412/1.412, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2224/0.2224, allocations: 22.36 MB / 312.7 MB, free: 12.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 71.88 kB / 378.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2885, allocations: 54.94 MB / 433.8 MB, free: 38.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.OOM_Intro.HelloWorld): time 0.001643/0.2902, allocations: 0.5078 MB / 434.3 MB, free: 38.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001319/0.2903, allocations: 18.41 kB / 434.3 MB, free: 38.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.687e-05/0.2903, allocations: 6.5 kB / 434.3 MB, free: 38.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.147e-05/0.2904, allocations: 3.938 kB / 434.3 MB, free: 38.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.439e-05/0.2904, allocations: 0 / 434.3 MB, free: 38.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.719e-05/0.2905, allocations: 8.984 kB / 434.3 MB, free: 38.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.134e-05/0.2906, allocations: 13.88 kB / 434.3 MB, free: 38.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.347e-05/0.2907, allocations: 0 / 434.3 MB, free: 38.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.838e-05/0.2907, allocations: 7.094 kB / 434.3 MB, free: 38.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.541e-05/0.2908, allocations: 10.11 kB / 434.3 MB, free: 38.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.526e-05/0.2908, allocations: 0 / 434.3 MB, free: 38.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.187e-06/0.2908, allocations: 0 / 434.3 MB, free: 38.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.453e-05/0.2908, allocations: 0 / 434.3 MB, free: 38.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.804e-05/0.2909, allocations: 14.69 kB / 434.4 MB, free: 38.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.093e-05/0.2909, allocations: 6.438 kB / 434.4 MB, free: 38.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.2909, allocations: 0 / 434.4 MB, free: 38.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2909, allocations: 0 / 434.4 MB, free: 38.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.814e-06/0.2909, allocations: 0 / 434.4 MB, free: 38.36 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003302/0.2913, allocations: 325.4 kB / 434.7 MB, free: 38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.2913, allocations: 8.594 kB / 434.7 MB, free: 38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.738e-05/0.2913, allocations: 30.75 kB / 434.7 MB, free: 37.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.144e-05/0.2914, allocations: 3.812 kB / 434.7 MB, free: 37.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.586e-05/0.2915, allocations: 167.7 kB / 434.9 MB, free: 37.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.887e-05/0.2915, allocations: 384 / 434.9 MB, free: 37.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.941e-05/0.2915, allocations: 7.156 kB / 434.9 MB, free: 37.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.793e-05/0.2916, allocations: 36.53 kB / 434.9 MB, free: 37.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.2916, allocations: 3.938 kB / 434.9 MB, free: 37.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.785e-06/0.2916, allocations: 0 / 434.9 MB, free: 37.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.2917, allocations: 0 / 434.9 MB, free: 37.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.01e-05/0.2917, allocations: 9.5 kB / 434.9 MB, free: 37.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001198/0.2918, allocations: 155.8 kB / 435.1 MB, free: 37.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.974e-05/0.2919, allocations: 28.28 kB / 435.1 MB, free: 37.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.266e-05/0.2919, allocations: 8.828 kB / 435.1 MB, free: 37.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.108e-05/0.292, allocations: 0 / 435.1 MB, free: 37.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.514e-05/0.292, allocations: 41.62 kB / 435.2 MB, free: 37.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 7.61e-07/0.292, allocations: 0 / 435.2 MB, free: 37.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001783/0.2922, allocations: 48.81 kB / 435.2 MB, free: 37.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.851e-05/0.2922, allocations: 55.41 kB / 435.3 MB, free: 37.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.484e-05/0.2923, allocations: 99.89 kB / 435.4 MB, free: 37.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.376e-06/0.2923, allocations: 25.7 kB / 435.4 MB, free: 37.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.84e-05/0.2923, allocations: 82.98 kB / 435.5 MB, free: 37.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.462e-05/0.2923, allocations: 7.906 kB / 435.5 MB, free: 37.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.667e-05/0.2924, allocations: 16.12 kB / 435.5 MB, free: 37.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.096e-05/0.2924, allocations: 311 kB / 435.8 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.04e-05/0.2925, allocations: 11.03 kB / 435.8 MB, free: 36.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.221e-05/0.2925, allocations: 6.234 kB / 435.8 MB, free: 36.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001971/0.2927, allocations: 40.11 kB / 435.9 MB, free: 36.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2927, allocations: 0 / 435.9 MB, free: 36.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.669e-05/0.2928, allocations: 48.64 kB / 435.9 MB, free: 36.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.2928, allocations: 10.94 kB / 435.9 MB, free: 36.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.2928, allocations: 0 / 435.9 MB, free: 36.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.2928, allocations: 4.031 kB / 435.9 MB, free: 36.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.867e-05/0.2929, allocations: 5.812 kB / 435.9 MB, free: 36.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.2929, allocations: 3.984 kB / 435.9 MB, free: 36.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.131e-05/0.2929, allocations: 0 / 435.9 MB, free: 36.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-06/0.293, allocations: 10.34 kB / 435.9 MB, free: 36.7 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: x:VARIABLE(start = xstart fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 3 * 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.0001303/0.2931, allocations: 114.5 kB / 436.1 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.438e-06/0.2931, allocations: 6.812 kB / 436.1 MB, free: 36.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.116e-05/0.2931, allocations: 3.125 kB / 436.1 MB, free: 36.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2931, allocations: 4 kB / 436.1 MB, free: 36.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.2931, allocations: 7.938 kB / 436.1 MB, free: 36.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.2932, allocations: 2.75 kB / 436.1 MB, free: 36.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.045e-05/0.2932, allocations: 156.1 kB / 436.2 MB, free: 36.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.2932, allocations: 0 / 436.2 MB, free: 36.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.284e-05/0.2933, allocations: 8.969 kB / 436.2 MB, free: 36.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.2933, allocations: 3.938 kB / 436.2 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.615e-06/0.2933, allocations: 0 / 436.2 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2933, allocations: 0 / 436.2 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.2933, allocations: 3.031 kB / 436.2 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001354/0.2935, allocations: 75.11 kB / 436.3 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.15e-05/0.2935, allocations: 84.39 kB / 436.4 MB, free: 36.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.266e-05/0.2935, allocations: 7.875 kB / 436.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.193e-05/0.2936, allocations: 2.812 kB / 436.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.063e-05/0.2936, allocations: 3.938 kB / 436.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-06/0.2936, allocations: 0 / 436.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.099e-05/0.2936, allocations: 81.94 kB / 436.5 MB, free: 36.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2936, allocations: 4 kB / 436.5 MB, free: 36.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001753/0.2938, allocations: 6.906 kB / 436.5 MB, free: 36.1 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (x) * 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 (2): * Single equations (assignments): 2 * 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.000261/0.2941, allocations: 0.5959 MB / 437.1 MB, free: 35.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001027/0.2942, allocations: 27.03 kB / 437.1 MB, free: 35.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2942, allocations: 0 / 437.1 MB, free: 35.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.224e-05/0.2942, allocations: 13.05 kB / 437.1 MB, free: 35.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001375/0.2944, allocations: 0 / 437.1 MB, free: 35.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007448/0.2951, allocations: 1.107 MB / 438.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000108/0.2952, allocations: 0.6718 MB / 438.9 MB, free: 33.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.109e-05/0.2953, allocations: 6.969 kB / 438.9 MB, free: 33.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.554e-05/0.2953, allocations: 11.33 kB / 438.9 MB, free: 33.68 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2953, allocations: 0 / 438.9 MB, free: 33.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01787/0.3132, allocations: 1.071 MB / 440 MB, free: 33.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.501/7.814, allocations: 13.05 kB / 440 MB, free: 33.33 MB / 350.1 MB (rm -f AES_AES.Coursework.OOM_Intro.HelloWorld.pipe ; mkfifo AES_AES.Coursework.OOM_Intro.HelloWorld.pipe ; head -c 1048576 < AES_AES.Coursework.OOM_Intro.HelloWorld.pipe >> ../files/AES_AES.Coursework.OOM_Intro.HelloWorld.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.OOM_Intro.HelloWorld_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0333333 AES_AES_Coursework_OOM_Intro_HelloWorld.fmu > AES_AES.Coursework.OOM_Intro.HelloWorld.pipe 2>&1)