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.00123/0.00123, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001282/0.001282, allocations: 190.4 kB / 16.25 MB, free: 6.633 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.218/1.218, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1724/0.1724, allocations: 22.36 MB / 312.4 MB, free: 12.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.91 kB / 380.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.2209, allocations: 54.94 MB / 435.4 MB, free: 39.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.OOM_Intro.HelloWorld_inverse): time 0.001347/0.2223, allocations: 0.565 MB / 435.9 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001213/0.2224, allocations: 29.25 kB / 435.9 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.69e-05/0.2224, allocations: 2.469 kB / 435.9 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.204e-05/0.2225, allocations: 3.938 kB / 436 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.89e-05/0.2225, allocations: 0 / 436 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001332/0.2226, allocations: 2.812 kB / 436 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.435e-05/0.2227, allocations: 10.58 kB / 436 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.577e-05/0.2227, allocations: 6.031 kB / 436 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.429e-05/0.2227, allocations: 4 kB / 436 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.442e-05/0.2228, allocations: 6.938 kB / 436 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.2228, allocations: 0 / 436 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.292e-06/0.2228, allocations: 0 / 436 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.196e-05/0.2228, allocations: 2.625 kB / 436 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.614e-05/0.2228, allocations: 3.281 kB / 436 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 3.352e-05/0.2229, allocations: 6.969 kB / 436 MB, free: 39.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2229, allocations: 4 kB / 436 MB, free: 39.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2229, allocations: 0 / 436 MB, free: 39.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.838e-06/0.2229, allocations: 0 / 436 MB, free: 39.28 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.0002562/0.2232, allocations: 329.2 kB / 436.3 MB, free: 38.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.2232, allocations: 10.91 kB / 436.3 MB, free: 38.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.989e-05/0.2232, allocations: 34.69 kB / 436.4 MB, free: 38.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.886e-05/0.2232, allocations: 4.844 kB / 436.4 MB, free: 38.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.648e-05/0.2233, allocations: 167 kB / 436.5 MB, free: 38.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.794e-06/0.2233, allocations: 384 / 436.5 MB, free: 38.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.632e-05/0.2233, allocations: 8.375 kB / 436.5 MB, free: 38.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.287e-05/0.2234, allocations: 35.77 kB / 436.6 MB, free: 38.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.45e-06/0.2234, allocations: 7.922 kB / 436.6 MB, free: 38.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.641e-06/0.2234, allocations: 4 kB / 436.6 MB, free: 38.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-06/0.2234, allocations: 0 / 436.6 MB, free: 38.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.098e-05/0.2235, allocations: 3.938 kB / 436.6 MB, free: 38.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.501e-05/0.2236, allocations: 148.9 kB / 436.7 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.101e-05/0.2236, allocations: 30.33 kB / 436.8 MB, free: 38.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.509e-05/0.2236, allocations: 10.88 kB / 436.8 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.2236, allocations: 3.938 kB / 436.8 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.369e-05/0.2237, allocations: 37.19 kB / 436.8 MB, free: 38.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.2237, allocations: 0 / 436.8 MB, free: 38.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002428/0.2239, allocations: 69.45 kB / 436.9 MB, free: 38.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.56e-05/0.2239, allocations: 51.41 kB / 436.9 MB, free: 38.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.782e-05/0.224, allocations: 95.61 kB / 437 MB, free: 38.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.891e-06/0.224, allocations: 32.58 kB / 437.1 MB, free: 38.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.698e-06/0.224, allocations: 80.45 kB / 437.1 MB, free: 38.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.792e-05/0.224, allocations: 21.97 kB / 437.2 MB, free: 38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.363e-05/0.224, allocations: 16.56 kB / 437.2 MB, free: 37.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.236e-05/0.2241, allocations: 313.8 kB / 437.5 MB, free: 37.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.29e-05/0.2241, allocations: 3.234 kB / 437.5 MB, free: 37.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.187e-06/0.2241, allocations: 5.344 kB / 437.5 MB, free: 37.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.873e-05/0.2241, allocations: 18.52 kB / 437.5 MB, free: 37.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.31e-07/0.2242, allocations: 0 / 437.5 MB, free: 37.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.137e-05/0.2242, allocations: 44.12 kB / 437.6 MB, free: 37.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.277e-06/0.2242, allocations: 14.03 kB / 437.6 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.2242, allocations: 3.281 kB / 437.6 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.676e-06/0.2242, allocations: 0 / 437.6 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.808e-05/0.2243, allocations: 6.531 kB / 437.6 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.2243, allocations: 0 / 437.6 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.043e-05/0.2244, allocations: 6.469 kB / 437.6 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.2244, allocations: 0 / 437.6 MB, free: 37.61 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 3.525e-05/0.2244, allocations: 116.1 kB / 437.7 MB, free: 37.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.584e-06/0.2244, allocations: 3.938 kB / 437.7 MB, free: 37.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.475e-05/0.2245, allocations: 59.86 kB / 437.8 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.2245, allocations: 0 / 437.8 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.2245, allocations: 0 / 437.8 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.2245, allocations: 0 / 437.8 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.737e-05/0.2246, allocations: 154.5 kB / 437.9 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.2246, allocations: 0 / 437.9 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.402e-05/0.2246, allocations: 8.281 kB / 437.9 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.2246, allocations: 3.938 kB / 437.9 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.249e-06/0.2246, allocations: 2.719 kB / 437.9 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.61e-07/0.2246, allocations: 0 / 437.9 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.2247, allocations: 4 kB / 437.9 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.367e-05/0.2247, allocations: 76.33 kB / 438 MB, free: 37.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.367e-05/0.2247, allocations: 91.36 kB / 438.1 MB, free: 37.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.187e-06/0.2247, allocations: 4 kB / 438.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.796e-05/0.2248, allocations: 0 / 438.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.179e-05/0.2248, allocations: 0 / 438.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-06/0.2248, allocations: 2.938 kB / 438.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 1.893e-05/0.2248, allocations: 87.16 kB / 438.2 MB, free: 36.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2248, allocations: 0 / 438.2 MB, free: 36.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001638/0.225, allocations: 2.875 kB / 438.2 MB, free: 36.97 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.0001664/0.2252, allocations: 0.6012 MB / 438.8 MB, free: 36.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.363e-05/0.2252, allocations: 22.64 kB / 438.8 MB, free: 36.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.2252, allocations: 4.094 kB / 438.8 MB, free: 36.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.255e-05/0.2253, allocations: 9.875 kB / 438.8 MB, free: 36.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001202/0.2254, allocations: 0.7031 kB / 438.8 MB, free: 36.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002155/0.2256, allocations: 132.9 kB / 439 MB, free: 36.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.784e-05/0.2257, allocations: 0.6752 MB / 439.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.734e-05/0.2257, allocations: 0 / 439.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.337e-05/0.2257, allocations: 14.41 kB / 439.6 MB, free: 35.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2257, allocations: 0 / 439.6 MB, free: 35.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009419/0.2352, allocations: 0.9195 MB / 440.6 MB, free: 35.29 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001331/0.2353, allocations: 190.4 kB / 440.7 MB, free: 35.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.602/1.837, allocations: 4 kB / 440.7 MB, free: 35.02 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)