Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.OOM_Intro.HelloWorld_inverse.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_inverse,fileNamePrefix="AES_AES_Coursework_OOM_Intro_HelloWorld_inverse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.OOM_Intro.HelloWorld_inverse,fileNamePrefix="AES_AES_Coursework_OOM_Intro_HelloWorld_inverse",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.001382/0.001382, 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.001609/0.001609, allocations: 194.3 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.316/1.316, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2044/0.2044, allocations: 22.34 MB / 312.7 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 63.89 kB / 380.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.2758, allocations: 54.94 MB / 435.9 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.OOM_Intro.HelloWorld_inverse): time 0.001652/0.2775, allocations: 0.4979 MB / 436.4 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001542/0.2777, allocations: 31.52 kB / 436.4 MB, free: 39.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.598e-05/0.2777, allocations: 3.938 kB / 436.4 MB, free: 39.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.197e-05/0.2778, allocations: 0 / 436.4 MB, free: 39.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.294e-05/0.2778, allocations: 2.844 kB / 436.4 MB, free: 39.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001646/0.278, allocations: 8.984 kB / 436.4 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.565e-05/0.278, allocations: 13.69 kB / 436.4 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.783e-05/0.2781, allocations: 0 / 436.4 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.72e-05/0.2781, allocations: 2.844 kB / 436.4 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.174e-05/0.2782, allocations: 11.31 kB / 436.4 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.2782, allocations: 2.812 kB / 436.4 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.733e-06/0.2782, allocations: 0 / 436.4 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.396e-05/0.2782, allocations: 4 kB / 436.5 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.172e-05/0.2782, allocations: 2.781 kB / 436.5 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.729e-05/0.2783, allocations: 15.39 kB / 436.5 MB, free: 39.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2783, allocations: 0 / 436.5 MB, free: 39.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2783, allocations: 0 / 436.5 MB, free: 39.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.2783, allocations: 0 / 436.5 MB, free: 39.29 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.0003547/0.2787, allocations: 326.7 kB / 436.8 MB, free: 38.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.2787, allocations: 11.44 kB / 436.8 MB, free: 38.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.583e-05/0.2788, allocations: 30.75 kB / 436.8 MB, free: 38.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.283e-05/0.2788, allocations: 4.844 kB / 436.8 MB, free: 38.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.937e-05/0.2789, allocations: 170.5 kB / 437 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.2789, allocations: 384 / 437 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.257e-05/0.2789, allocations: 384 / 437 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.936e-05/0.279, allocations: 29.14 kB / 437 MB, free: 38.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.279, allocations: 3.938 kB / 437 MB, free: 38.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.364e-06/0.279, allocations: 10.72 kB / 437 MB, free: 38.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.279, allocations: 0 / 437 MB, free: 38.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.702e-05/0.2791, allocations: 10.14 kB / 437.1 MB, free: 38.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000124/0.2792, allocations: 148.6 kB / 437.2 MB, free: 38.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.499e-05/0.2793, allocations: 23.72 kB / 437.2 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.901e-05/0.2793, allocations: 7.828 kB / 437.2 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.2793, allocations: 0 / 437.2 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.833e-05/0.2793, allocations: 38.56 kB / 437.3 MB, free: 38.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.32e-07/0.2793, allocations: 0 / 437.3 MB, free: 38.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003054/0.2796, allocations: 71.06 kB / 437.3 MB, free: 38.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.86e-05/0.2797, allocations: 51.41 kB / 437.4 MB, free: 38.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.218e-05/0.2797, allocations: 99.89 kB / 437.5 MB, free: 38.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.015e-06/0.2797, allocations: 25.7 kB / 437.5 MB, free: 38.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.532e-05/0.2798, allocations: 80.14 kB / 437.6 MB, free: 38.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/0.2798, allocations: 23.88 kB / 437.6 MB, free: 38.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.659e-05/0.2798, allocations: 9.719 kB / 437.6 MB, free: 38.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.028e-05/0.2799, allocations: 322 kB / 437.9 MB, free: 37.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.45e-05/0.2799, allocations: 4 kB / 437.9 MB, free: 37.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.053e-05/0.2799, allocations: 2.875 kB / 437.9 MB, free: 37.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.504e-05/0.28, allocations: 19.81 kB / 438 MB, free: 37.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-07/0.28, allocations: 0 / 438 MB, free: 37.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.835e-05/0.28, allocations: 44.17 kB / 438 MB, free: 37.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.28, allocations: 9.094 kB / 438 MB, free: 37.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.2801, allocations: 4 kB / 438 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.2801, allocations: 0 / 438 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.123e-05/0.2802, allocations: 8.094 kB / 438 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.2802, allocations: 3.938 kB / 438 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.22e-05/0.2802, allocations: 3.281 kB / 438 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.2802, allocations: 2.875 kB / 438 MB, free: 37.64 MB / 350.1 MB 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 5.038e-05/0.2803, allocations: 114.6 kB / 438.1 MB, free: 37.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.127e-06/0.2803, allocations: 7 kB / 438.2 MB, free: 37.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001011/0.2804, allocations: 52.72 kB / 438.2 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.2804, allocations: 5.703 kB / 438.2 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2804, allocations: 0 / 438.2 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.2804, allocations: 0 / 438.2 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.715e-05/0.2805, allocations: 151.5 kB / 438.4 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2805, allocations: 6.906 kB / 438.4 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.426e-05/0.2805, allocations: 7.844 kB / 438.4 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.2805, allocations: 7.656 kB / 438.4 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.2806, allocations: 0 / 438.4 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.2806, allocations: 7.219 kB / 438.4 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2806, allocations: 4 kB / 438.4 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.831e-05/0.2807, allocations: 68.45 kB / 438.5 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.851e-05/0.2807, allocations: 84.95 kB / 438.5 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.056e-05/0.2807, allocations: 0 / 438.5 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.95e-05/0.2807, allocations: 2.719 kB / 438.5 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.282e-05/0.2807, allocations: 0 / 438.5 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-06/0.2807, allocations: 9.844 kB / 438.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.224e-05/0.2808, allocations: 83.28 kB / 438.6 MB, free: 37 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2808, allocations: 0 / 438.6 MB, free: 37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001855/0.281, allocations: 2.969 kB / 438.6 MB, free: 37 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (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 Backend phase and start with SimCode phase: time 0.0002441/0.2812, allocations: 0.6017 MB / 439.2 MB, free: 36.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.373e-05/0.2813, allocations: 17.58 kB / 439.3 MB, free: 36.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2813, allocations: 4.094 kB / 439.3 MB, free: 36.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.297e-05/0.2813, allocations: 10.03 kB / 439.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.2815, allocations: 10.28 kB / 439.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002701/0.2818, allocations: 120.1 kB / 439.4 MB, free: 36.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.785e-05/0.2819, allocations: 0.6716 MB / 440.1 MB, free: 35.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.07e-05/0.2819, allocations: 5.469 kB / 440.1 MB, free: 35.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.844e-05/0.2819, allocations: 7.438 kB / 440.1 MB, free: 35.54 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.2819, allocations: 4 kB / 440.1 MB, free: 35.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01558/0.2975, allocations: 1.001 MB / 441.1 MB, free: 35.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.49/7.788, allocations: 21.48 kB / 441.1 MB, free: 35.18 MB / 350.1 MB (rm -f AES_AES.Coursework.OOM_Intro.HelloWorld_inverse.pipe ; mkfifo AES_AES.Coursework.OOM_Intro.HelloWorld_inverse.pipe ; head -c 1048576 < AES_AES.Coursework.OOM_Intro.HelloWorld_inverse.pipe >> ../files/AES_AES.Coursework.OOM_Intro.HelloWorld_inverse.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.OOM_Intro.HelloWorld_inverse_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_inverse.fmu > AES_AES.Coursework.OOM_Intro.HelloWorld_inverse.pipe 2>&1)