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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001668/0.001668, allocations: 104.5 kB / 16.39 MB, free: 6.367 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 192.6 kB / 19.35 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 245.1 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1136/0.1136, allocations: 22.33 MB / 319.5 MB, free: 6.773 MB / 254.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002073/0.002073, allocations: 63.89 kB / 445.2 MB, free: 8.641 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1176, allocations: 54.95 MB / 0.4885 GB, free: 1.641 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.OOM_Intro.HelloWorld_inverse): time 0.001878/0.1195, allocations: 0.5091 MB / 0.489 GB, free: 1.133 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001886/0.1197, allocations: 35.86 kB / 0.489 GB, free: 1.098 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.774e-05/0.1197, allocations: 0 / 0.489 GB, free: 1.098 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.611e-05/0.1198, allocations: 3.938 kB / 0.489 GB, free: 1.094 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 2.745e-05/0.1198, allocations: 4 kB / 0.489 GB, free: 1.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001683/0.12, allocations: 12 kB / 0.489 GB, free: 1.078 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.824e-05/0.12, allocations: 3.984 kB / 0.489 GB, free: 1.074 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.755e-05/0.1201, allocations: 4 kB / 0.489 GB, free: 1.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.693e-05/0.1201, allocations: 3.938 kB / 0.489 GB, free: 1.066 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.547e-05/0.1202, allocations: 15.91 kB / 0.489 GB, free: 1.051 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.469e-05/0.1202, allocations: 0 / 0.489 GB, free: 1.051 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.442e-06/0.1202, allocations: 0 / 0.489 GB, free: 1.051 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.6e-05/0.1203, allocations: 4 kB / 0.489 GB, free: 1.047 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.979e-05/0.1203, allocations: 4 kB / 0.4891 GB, free: 1.043 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 5.574e-05/0.1204, allocations: 7.938 kB / 0.4891 GB, free: 1.035 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1204, allocations: 0 / 0.4891 GB, free: 1.035 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1204, allocations: 0 / 0.4891 GB, free: 1.035 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.1204, allocations: 7.922 kB / 0.4891 GB, free: 1.027 MB / 366.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.0004722/0.1209, allocations: 323.5 kB / 0.4894 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.1209, allocations: 12.03 kB / 0.4894 GB, free: 0.6484 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.407e-05/0.121, allocations: 30.75 kB / 0.4894 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.11e-05/0.121, allocations: 0.9375 kB / 0.4894 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.1211, allocations: 160.4 kB / 0.4896 GB, free: 424 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.1212, allocations: 8.375 kB / 0.4896 GB, free: 416 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.305e-05/0.1212, allocations: 4.328 kB / 0.4896 GB, free: 412 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.1213, allocations: 34.25 kB / 0.4896 GB, free: 372 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.1213, allocations: 3.938 kB / 0.4896 GB, free: 368 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.795e-06/0.1213, allocations: 0 / 0.4896 GB, free: 368 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.1213, allocations: 0 / 0.4896 GB, free: 368 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.944e-05/0.1214, allocations: 11.94 kB / 0.4896 GB, free: 356 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001779/0.1216, allocations: 145.7 kB / 0.4898 GB, free: 160 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.163e-05/0.1216, allocations: 30.61 kB / 0.4898 GB, free: 120 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.979e-05/0.1217, allocations: 4.859 kB / 0.4898 GB, free: 112 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.1217, allocations: 0 / 0.4898 GB, free: 112 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.1217, allocations: 38.62 kB / 0.4898 GB, free: 64 kB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 8.91e-07/0.1217, allocations: 0 / 0.4898 GB, free: 64 kB / 366.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003588/0.1221, allocations: 65.61 kB / 0.4899 GB, free: 15.99 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/0.1221, allocations: 59.53 kB / 0.49 GB, free: 15.92 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.078e-05/0.1222, allocations: 93.86 kB / 0.49 GB, free: 15.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.1223, allocations: 25.7 kB / 0.4901 GB, free: 15.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.285e-05/0.1223, allocations: 80.14 kB / 0.4901 GB, free: 15.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.834e-05/0.1224, allocations: 23.83 kB / 0.4902 GB, free: 15.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.472e-05/0.1224, allocations: 9.719 kB / 0.4902 GB, free: 15.67 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1226, allocations: 314.8 kB / 0.4905 GB, free: 15.35 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.413e-05/0.1226, allocations: 7.938 kB / 0.4905 GB, free: 15.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.606e-05/0.1226, allocations: 16.05 kB / 0.4905 GB, free: 15.33 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.068e-05/0.1227, allocations: 20.86 kB / 0.4905 GB, free: 15.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.91e-07/0.1227, allocations: 0 / 0.4905 GB, free: 15.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.949e-05/0.1227, allocations: 45.69 kB / 0.4906 GB, free: 15.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.1228, allocations: 7.938 kB / 0.4906 GB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1228, allocations: 0 / 0.4906 GB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.1228, allocations: 192 / 0.4906 GB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.036e-05/0.1229, allocations: 8 kB / 0.4906 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.1229, allocations: 0 / 0.4906 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.058e-05/0.1229, allocations: 3.938 kB / 0.4906 GB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.123, allocations: 7.984 kB / 0.4906 GB, free: 15.23 MB / 382.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 9.029e-05/0.123, allocations: 110.6 kB / 0.4907 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.524e-05/0.1231, allocations: 11.92 kB / 0.4907 GB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001264/0.1232, allocations: 49.19 kB / 0.4908 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.1232, allocations: 3.938 kB / 0.4908 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1232, allocations: 0 / 0.4908 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1232, allocations: 0 / 0.4908 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000143/0.1234, allocations: 157.7 kB / 0.4909 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1234, allocations: 4 kB / 0.4909 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.329e-05/0.1235, allocations: 11.98 kB / 0.4909 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.1235, allocations: 3.938 kB / 0.4909 GB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.1235, allocations: 0 / 0.4909 GB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.1235, allocations: 0 / 0.4909 GB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1235, allocations: 3.938 kB / 0.4909 GB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001109/0.1236, allocations: 69.12 kB / 0.491 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.058e-05/0.1237, allocations: 85 kB / 0.4911 GB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.1237, allocations: 8 kB / 0.4911 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.776e-05/0.1237, allocations: 0 / 0.4911 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.648e-05/0.1237, allocations: 0 / 0.4911 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.1237, allocations: 0 / 0.4911 GB, free: 14.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.867e-05/0.1238, allocations: 87.27 kB / 0.4912 GB, free: 14.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1238, allocations: 0 / 0.4912 GB, free: 14.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001761/0.124, allocations: 4 kB / 0.4912 GB, free: 14.52 MB / 382.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.0004267/0.1244, allocations: 0.6047 MB / 0.4918 GB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.604e-05/0.1245, allocations: 12 kB / 0.4918 GB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.1245, allocations: 0 / 0.4918 GB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.877e-05/0.1246, allocations: 15.92 kB / 0.4918 GB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001397/0.1247, allocations: 4 kB / 0.4918 GB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003124/0.125, allocations: 118.5 kB / 0.4919 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.1254, allocations: 0.6807 MB / 0.4926 GB, free: 13 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.416e-05/0.1254, allocations: 4 kB / 0.4926 GB, free: 12.99 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.484e-05/0.1254, allocations: 11.42 kB / 0.4926 GB, free: 12.98 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1254, allocations: 0 / 0.4926 GB, free: 12.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02334/0.1488, allocations: 1.03 MB / 0.4936 GB, free: 12.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.574/7.723, allocations: 7.719 kB / 0.4936 GB, free: 12.01 MB / 382.1 MB " [Timeout remaining time 652] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.565214419038966] Failed to read output from testmodel.py, exit status != 0: 7.789467180031352 8.001061138 7.689139182 Calling exit ...