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.001109/0.001109, allocations: 112.5 kB / 15.73 MB, free: 76 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.00121/0.00121, allocations: 190.6 kB / 16.67 MB, free: 6.574 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.341/1.341, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1972/0.1972, allocations: 22.35 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001274, allocations: 61.38 kB / 436.6 MB, free: 34.13 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1209, allocations: 54.96 MB / 491.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.OOM_Intro.HelloWorld_inverse): time 0.00158/0.1226, allocations: 0.5124 MB / 492 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001997/0.1228, allocations: 34.98 kB / 492.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.769e-05/0.1228, allocations: 0 / 492.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.047e-05/0.1229, allocations: 0 / 492.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.566e-05/0.1229, allocations: 3.938 kB / 492.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001835/0.1231, allocations: 15.98 kB / 492.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.273e-05/0.1231, allocations: 8 kB / 492.1 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.734e-05/0.1232, allocations: 3.984 kB / 492.1 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.801e-05/0.1232, allocations: 0 / 492.1 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.387e-05/0.1233, allocations: 7.938 kB / 492.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.859e-05/0.1233, allocations: 0 / 492.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.653e-06/0.1233, allocations: 0 / 492.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.593e-05/0.1233, allocations: 0 / 492.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.735e-05/0.1234, allocations: 11.97 kB / 492.1 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.002e-05/0.1234, allocations: 7.938 kB / 492.1 MB, free: 1.137 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1235, allocations: 0 / 492.1 MB, free: 1.137 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1235, allocations: 7.938 kB / 492.1 MB, free: 1.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.1235, allocations: 0 / 492.1 MB, free: 1.129 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.0003822/0.1239, allocations: 319.8 kB / 492.4 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.1239, allocations: 12.03 kB / 492.5 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.607e-05/0.1239, allocations: 34.69 kB / 492.5 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.574e-05/0.124, allocations: 0.9375 kB / 492.5 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.893e-05/0.1241, allocations: 164.4 kB / 492.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.1241, allocations: 8.375 kB / 492.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.353e-05/0.1241, allocations: 4.375 kB / 492.7 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.914e-05/0.1242, allocations: 34.25 kB / 492.7 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.1242, allocations: 3.938 kB / 492.7 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.475e-06/0.1242, allocations: 0 / 492.7 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1242, allocations: 0 / 492.7 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.757e-05/0.1243, allocations: 7.984 kB / 492.7 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001243/0.1244, allocations: 149.6 kB / 492.9 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.961e-05/0.1245, allocations: 38.53 kB / 492.9 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.809e-05/0.1245, allocations: 4.859 kB / 492.9 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.331e-05/0.1245, allocations: 0 / 492.9 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.186e-05/0.1245, allocations: 34.62 kB / 492.9 MB, free: 160 kB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.32e-07/0.1245, allocations: 0 / 492.9 MB, free: 160 kB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003281/0.1249, allocations: 69.55 kB / 493 MB, free: 84 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.23e-05/0.1249, allocations: 51.41 kB / 493 MB, free: 20 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.987e-05/0.125, allocations: 102 kB / 493.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.125, allocations: 25.7 kB / 493.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.613e-05/0.1251, allocations: 84.14 kB / 493.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.839e-05/0.1251, allocations: 15.84 kB / 493.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.21e-05/0.1251, allocations: 17.7 kB / 493.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1252, allocations: 314.8 kB / 493.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.655e-05/0.1253, allocations: 0 / 493.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.438e-05/0.1253, allocations: 11.94 kB / 493.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.731e-05/0.1253, allocations: 28.91 kB / 493.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.1253, allocations: 0 / 493.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.843e-05/0.1254, allocations: 41.7 kB / 493.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.1254, allocations: 7.938 kB / 493.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.1254, allocations: 3.984 kB / 493.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.1255, allocations: 4 kB / 493.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.633e-05/0.1256, allocations: 8 kB / 493.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.1256, allocations: 3.984 kB / 493.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.068e-05/0.1256, allocations: 0 / 493.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.523e-06/0.1256, allocations: 0 / 493.7 MB, free: 15.32 MB / 366.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 8.011e-05/0.1257, allocations: 118.6 kB / 493.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.054e-05/0.1257, allocations: 3.938 kB / 493.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001253/0.1259, allocations: 65.05 kB / 493.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.1259, allocations: 0 / 493.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.1259, allocations: 0 / 493.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.1259, allocations: 0 / 493.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/0.126, allocations: 153.7 kB / 494 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.126, allocations: 0 / 494 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.902e-05/0.1261, allocations: 8 kB / 494 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1261, allocations: 7.938 kB / 494 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.1261, allocations: 0 / 494 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1261, allocations: 0 / 494 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1261, allocations: 240 / 494 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.302e-05/0.1262, allocations: 77.05 kB / 494.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.934e-05/0.1262, allocations: 85.03 kB / 494.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.1263, allocations: 4 kB / 494.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.905e-05/0.1263, allocations: 0 / 494.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.644e-05/0.1263, allocations: 4 kB / 494.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.1263, allocations: 0 / 494.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.54e-05/0.1263, allocations: 79.28 kB / 494.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1264, allocations: 0 / 494.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001761/0.1265, allocations: 4 kB / 494.3 MB, free: 14.62 MB / 366.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.0003732/0.1269, allocations: 0.6086 MB / 494.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.771e-05/0.127, allocations: 15.92 kB / 494.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.127, allocations: 0 / 494.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.651e-05/0.127, allocations: 15.94 kB / 494.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001331/0.1272, allocations: 0 / 494.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002945/0.1275, allocations: 118.6 kB / 495.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002593/0.1277, allocations: 0.6768 MB / 495.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.19e-05/0.1278, allocations: 8 kB / 495.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.301e-05/0.1278, allocations: 7.438 kB / 495.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1278, allocations: 0 / 495.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01662/0.1444, allocations: 1.035 MB / 496.8 MB, free: 12.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.438/7.582, allocations: 13.86 kB / 496.8 MB, free: 12.09 MB / 366.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)