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.0006662/0.0006663, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.003967/0.003968, allocations: 173.9 kB / 16.26 MB, free: 6.613 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.336/1.336, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2238/0.2238, allocations: 22.36 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002917/0.0002916, allocations: 8 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2655, allocations: 55.97 MB / 438.7 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.OOM_Intro.HelloWorld_inverse): time 0.0006708/0.2662, allocations: 240.5 kB / 438.9 MB, free: 38.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001522/0.2664, allocations: 35.47 kB / 438.9 MB, free: 38.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.162e-05/0.2664, allocations: 4 kB / 439 MB, free: 38.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.207e-05/0.2664, allocations: 0 / 439 MB, free: 38.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.946e-05/0.2665, allocations: 3.938 kB / 439 MB, free: 38.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001633/0.2666, allocations: 10.3 kB / 439 MB, free: 38.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.457e-05/0.2667, allocations: 6.938 kB / 439 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.765e-05/0.2667, allocations: 3.062 kB / 439 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.195e-05/0.2668, allocations: 6.172 kB / 439 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.877e-05/0.2668, allocations: 0 / 439 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.41e-05/0.2669, allocations: 0 / 439 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.033e-05/0.2669, allocations: 3.5 kB / 439 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.886e-05/0.2669, allocations: 7.984 kB / 439 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.542e-05/0.2669, allocations: 33.64 kB / 439 MB, free: 38.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.666e-05/0.267, allocations: 7.359 kB / 439 MB, free: 38.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.267, allocations: 3.25 kB / 439 MB, free: 38.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.267, allocations: 0 / 439 MB, free: 38.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.476e-06/0.267, allocations: 0 / 439 MB, free: 38.86 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.0003416/0.2674, allocations: 320.8 kB / 439.4 MB, free: 38.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.2674, allocations: 11.78 kB / 439.4 MB, free: 38.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.811e-05/0.2675, allocations: 33.38 kB / 439.4 MB, free: 38.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.151e-05/0.2675, allocations: 4.938 kB / 439.4 MB, free: 38.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.999e-05/0.2676, allocations: 175.5 kB / 439.6 MB, free: 38.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.033e-05/0.2676, allocations: 6.75 kB / 439.6 MB, free: 38.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.2676, allocations: 384 / 439.6 MB, free: 38.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.561e-05/0.2677, allocations: 32.64 kB / 439.6 MB, free: 38.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.2677, allocations: 3.938 kB / 439.6 MB, free: 38.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-06/0.2677, allocations: 0 / 439.6 MB, free: 38.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.2677, allocations: 2.562 kB / 439.6 MB, free: 38.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.538e-05/0.2678, allocations: 2.469 kB / 439.6 MB, free: 38.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001202/0.2679, allocations: 156 kB / 439.8 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.19e-05/0.268, allocations: 27.05 kB / 439.8 MB, free: 37.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.813e-05/0.268, allocations: 7.391 kB / 439.8 MB, free: 37.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.268, allocations: 0 / 439.8 MB, free: 37.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.851e-05/0.268, allocations: 35.22 kB / 439.8 MB, free: 37.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.01e-07/0.268, allocations: 0 / 439.8 MB, free: 37.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.000338/0.2684, allocations: 72.58 kB / 439.9 MB, free: 37.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/0.2684, allocations: 51.41 kB / 440 MB, free: 37.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.71e-05/0.2685, allocations: 101.2 kB / 440.1 MB, free: 37.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.2685, allocations: 25.7 kB / 440.1 MB, free: 37.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.741e-05/0.2685, allocations: 80.14 kB / 440.2 MB, free: 37.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.513e-05/0.2686, allocations: 15.72 kB / 440.2 MB, free: 37.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.85e-05/0.2686, allocations: 9.719 kB / 440.2 MB, free: 37.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.581e-05/0.2687, allocations: 318.8 kB / 440.5 MB, free: 37.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.392e-05/0.2687, allocations: 6.844 kB / 440.5 MB, free: 37.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.054e-05/0.2687, allocations: 2.844 kB / 440.5 MB, free: 37.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.421e-05/0.2687, allocations: 21.17 kB / 440.5 MB, free: 37.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.11e-07/0.2687, allocations: 0 / 440.5 MB, free: 37.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.9e-05/0.2688, allocations: 48.77 kB / 440.6 MB, free: 37.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.2688, allocations: 8.812 kB / 440.6 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.2688, allocations: 0 / 440.6 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.2688, allocations: 0 / 440.6 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.458e-05/0.2689, allocations: 11.25 kB / 440.6 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.2689, allocations: 0 / 440.6 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.955e-05/0.269, allocations: 4 kB / 440.6 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.934e-06/0.269, allocations: 6.688 kB / 440.6 MB, free: 37.2 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 4.924e-05/0.269, allocations: 113.7 kB / 440.7 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.446e-06/0.269, allocations: 6.906 kB / 440.7 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/0.2692, allocations: 56.02 kB / 440.8 MB, free: 37.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.2692, allocations: 6.812 kB / 440.8 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2692, allocations: 0 / 440.8 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.2692, allocations: 0 / 440.8 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.062e-05/0.2693, allocations: 159.6 kB / 440.9 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.2693, allocations: 0 / 440.9 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-05/0.2693, allocations: 12.52 kB / 441 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.2693, allocations: 3.938 kB / 441 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.2693, allocations: 4 kB / 441 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.2693, allocations: 0 / 441 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2693, allocations: 0 / 441 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.08e-05/0.2694, allocations: 72.84 kB / 441 MB, free: 36.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.637e-05/0.2695, allocations: 85.05 kB / 441.1 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/0.2695, allocations: 0 / 441.1 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.045e-05/0.2695, allocations: 9.812 kB / 441.1 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.381e-05/0.2695, allocations: 0 / 441.1 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-06/0.2695, allocations: 0 / 441.1 MB, free: 36.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.408e-05/0.2695, allocations: 78.22 kB / 441.2 MB, free: 36.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2696, allocations: 0 / 441.2 MB, free: 36.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001729/0.2697, allocations: 2.5 kB / 441.2 MB, free: 36.57 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.0002186/0.27, allocations: 0.6091 MB / 441.8 MB, free: 35.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.306e-05/0.27, allocations: 18.88 kB / 441.8 MB, free: 35.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.27, allocations: 0 / 441.8 MB, free: 35.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.43e-05/0.2701, allocations: 13.23 kB / 441.8 MB, free: 35.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000136/0.2702, allocations: 0 / 441.8 MB, free: 35.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002709/0.2705, allocations: 127.6 kB / 442 MB, free: 35.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001116/0.2706, allocations: 0.6759 MB / 442.6 MB, free: 35.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.02e-05/0.2706, allocations: 6.031 kB / 442.6 MB, free: 35.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.018e-05/0.2707, allocations: 11.44 kB / 442.7 MB, free: 35.09 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2707, allocations: 0 / 442.7 MB, free: 35.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01038/0.2811, allocations: 0.8323 MB / 443.5 MB, free: 34.95 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001516/0.2812, allocations: 178.4 kB / 443.7 MB, free: 34.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.767/2.049, allocations: 0 / 443.7 MB, free: 34.7 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_OOM_Intro_HelloWorld_inverse_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_OOM_Intro_HelloWorld_inverse.fmu > AES_AES.Coursework.OOM_Intro.HelloWorld_inverse.pipe 2>&1)