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.0009704/0.0009703, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001137/0.001137, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1987/0.1987, allocations: 22.35 MB / 313.3 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003726/0.0003726, allocations: 8 kB / 381.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2533, allocations: 55.97 MB / 437.9 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.OOM_Intro.HelloWorld_inverse): time 0.0004377/0.2538, allocations: 236.4 kB / 438.1 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001098/0.2539, allocations: 31.91 kB / 438.2 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.464e-05/0.2539, allocations: 0 / 438.2 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.756e-06/0.2539, allocations: 0 / 438.2 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.164e-05/0.2539, allocations: 0 / 438.2 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001093/0.2541, allocations: 2.781 kB / 438.2 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.39e-05/0.2541, allocations: 7 kB / 438.2 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.614e-05/0.2541, allocations: 7.219 kB / 438.2 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.387e-05/0.2542, allocations: 6.844 kB / 438.2 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.582e-05/0.2542, allocations: 4 kB / 438.2 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.2542, allocations: 2.844 kB / 438.2 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.102e-06/0.2542, allocations: 3.938 kB / 438.2 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.446e-06/0.2543, allocations: 3.469 kB / 438.2 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.438e-05/0.2543, allocations: 25.7 kB / 438.2 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 2.457e-05/0.2543, allocations: 5.75 kB / 438.2 MB, free: 39.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.2543, allocations: 0 / 438.2 MB, free: 39.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2543, allocations: 0 / 438.2 MB, free: 39.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.2543, allocations: 0 / 438.2 MB, free: 39.09 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.0002256/0.2546, allocations: 323.8 kB / 438.5 MB, free: 38.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.2546, allocations: 11.44 kB / 438.6 MB, free: 38.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.95e-05/0.2546, allocations: 30.56 kB / 438.6 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.615e-05/0.2546, allocations: 0 / 438.6 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.523e-05/0.2547, allocations: 170.2 kB / 438.8 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.644e-06/0.2547, allocations: 2.812 kB / 438.8 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.363e-05/0.2547, allocations: 0 / 438.8 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.876e-05/0.2548, allocations: 28.55 kB / 438.8 MB, free: 38.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.45e-06/0.2548, allocations: 3.953 kB / 438.8 MB, free: 38.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.151e-06/0.2548, allocations: 0 / 438.8 MB, free: 38.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.2548, allocations: 6.844 kB / 438.8 MB, free: 38.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.138e-05/0.2549, allocations: 14.91 kB / 438.8 MB, free: 38.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.667e-05/0.2549, allocations: 141.7 kB / 438.9 MB, free: 38.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.709e-05/0.255, allocations: 33.34 kB / 439 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.255, allocations: 0 / 439 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.121e-05/0.255, allocations: 30.56 kB / 439 MB, free: 38.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 7.41e-07/0.255, allocations: 4 kB / 439 MB, free: 38.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002364/0.2553, allocations: 72.72 kB / 439.1 MB, free: 38.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.804e-05/0.2553, allocations: 51.41 kB / 439.1 MB, free: 38.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.306e-05/0.2553, allocations: 96.86 kB / 439.2 MB, free: 37.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.952e-06/0.2553, allocations: 25.7 kB / 439.3 MB, free: 37.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.119e-05/0.2554, allocations: 80.14 kB / 439.3 MB, free: 37.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.635e-05/0.2554, allocations: 11.75 kB / 439.3 MB, free: 37.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.525e-06/0.2554, allocations: 3.125 kB / 439.3 MB, free: 37.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.254e-05/0.2554, allocations: 322.3 kB / 439.7 MB, free: 37.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.232e-05/0.2555, allocations: 5.109 kB / 439.7 MB, free: 37.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.105e-06/0.2555, allocations: 3.031 kB / 439.7 MB, free: 37.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.681e-05/0.2555, allocations: 10.28 kB / 439.7 MB, free: 37.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.2555, allocations: 0 / 439.7 MB, free: 37.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.357e-05/0.2556, allocations: 48.11 kB / 439.7 MB, free: 37.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.477e-06/0.2556, allocations: 9.688 kB / 439.7 MB, free: 37.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.2556, allocations: 0 / 439.7 MB, free: 37.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.548e-06/0.2556, allocations: 0 / 439.7 MB, free: 37.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.697e-05/0.2557, allocations: 13.52 kB / 439.7 MB, free: 37.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.2557, allocations: 4 kB / 439.8 MB, free: 37.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.976e-05/0.2557, allocations: 2.781 kB / 439.8 MB, free: 37.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.2557, allocations: 0 / 439.8 MB, free: 37.47 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 3.735e-05/0.2558, allocations: 111.9 kB / 439.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.091e-06/0.2558, allocations: 0 / 439.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.298e-05/0.2559, allocations: 55.59 kB / 439.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.2559, allocations: 0 / 439.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2559, allocations: 3.953 kB / 439.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.2559, allocations: 7.188 kB / 439.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.802e-05/0.2559, allocations: 159.7 kB / 440.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.2559, allocations: 3.938 kB / 440.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.172e-05/0.256, allocations: 5.562 kB / 440.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.256, allocations: 0 / 440.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.19e-06/0.256, allocations: 0 / 440.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.256, allocations: 0 / 440.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.256, allocations: 2.438 kB / 440.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.444e-05/0.2561, allocations: 78.56 kB / 440.2 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.343e-05/0.2561, allocations: 77.11 kB / 440.2 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.007e-05/0.2561, allocations: 2.312 kB / 440.3 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.725e-05/0.2561, allocations: 3.938 kB / 440.3 MB, free: 36.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.053e-05/0.2561, allocations: 2.5 kB / 440.3 MB, free: 36.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.083e-06/0.2561, allocations: 0 / 440.3 MB, free: 36.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 1.464e-05/0.2562, allocations: 78.25 kB / 440.3 MB, free: 36.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2562, allocations: 0 / 440.3 MB, free: 36.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001676/0.2563, allocations: 10.64 kB / 440.3 MB, free: 36.84 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001679/0.2565, allocations: 0.6061 MB / 441 MB, free: 36.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.429e-05/0.2566, allocations: 16.39 kB / 441 MB, free: 36.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.2566, allocations: 0 / 441 MB, free: 36.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.219e-05/0.2566, allocations: 11.72 kB / 441 MB, free: 36.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.148e-05/0.2567, allocations: 0 / 441 MB, free: 36.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002154/0.2569, allocations: 128.5 kB / 441.1 MB, free: 36.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.625e-05/0.257, allocations: 0.6796 MB / 441.8 MB, free: 35.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.768e-05/0.257, allocations: 3.234 kB / 441.8 MB, free: 35.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.499e-05/0.257, allocations: 14 kB / 441.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2571, allocations: 0 / 441.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.142/3.399, allocations: 0.8192 MB / 442.6 MB, free: 35.24 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003231/3.4, allocations: 174.4 kB / 442.8 MB, free: 34.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.432/4.832, allocations: 0 / 442.8 MB, free: 34.99 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/linux/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) Environment - environmentSimulation: