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.001009/0.001009, allocations: 108 kB / 15.6 MB, free: 132 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.0009471/0.000947, allocations: 192.8 kB / 16.53 MB, free: 6.391 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.288/1.288, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2301/0.2301, allocations: 22.35 MB / 312.7 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002289/0.002289, allocations: 67.89 kB / 380.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2811, allocations: 54.95 MB / 435.9 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.OOM_Intro.HelloWorld_inverse): time 0.001603/0.2828, allocations: 0.5023 MB / 436.4 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001636/0.2829, allocations: 34.22 kB / 436.4 MB, free: 39.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.833e-05/0.283, allocations: 0 / 436.4 MB, free: 39.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.181e-05/0.283, allocations: 0 / 436.4 MB, free: 39.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.17e-05/0.283, allocations: 4 kB / 436.4 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001723/0.2832, allocations: 14.52 kB / 436.4 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.562e-05/0.2833, allocations: 9.562 kB / 436.4 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.076e-05/0.2833, allocations: 0 / 436.4 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.927e-05/0.2833, allocations: 6.297 kB / 436.5 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.419e-05/0.2834, allocations: 6.938 kB / 436.5 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.432e-05/0.2834, allocations: 0 / 436.5 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.354e-06/0.2834, allocations: 0 / 436.5 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.594e-05/0.2835, allocations: 3.938 kB / 436.5 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.457e-05/0.2835, allocations: 2.875 kB / 436.5 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.125e-05/0.2836, allocations: 19.11 kB / 436.5 MB, free: 39.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2836, allocations: 4 kB / 436.5 MB, free: 39.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2836, allocations: 0 / 436.5 MB, free: 39.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.2836, allocations: 2.719 kB / 436.5 MB, free: 39.32 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.00035/0.2839, allocations: 317.9 kB / 436.8 MB, free: 38.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.284, allocations: 8.344 kB / 436.8 MB, free: 38.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.414e-05/0.284, allocations: 34.75 kB / 436.8 MB, free: 38.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.263e-05/0.284, allocations: 10.94 kB / 436.9 MB, free: 38.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.123e-05/0.2841, allocations: 160.4 kB / 437 MB, free: 38.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.2841, allocations: 8.375 kB / 437 MB, free: 38.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.078e-05/0.2842, allocations: 3.219 kB / 437 MB, free: 38.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.188e-05/0.2842, allocations: 36.19 kB / 437.1 MB, free: 38.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.2843, allocations: 3.938 kB / 437.1 MB, free: 38.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.605e-06/0.2843, allocations: 0 / 437.1 MB, free: 38.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.2843, allocations: 0 / 437.1 MB, free: 38.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.656e-05/0.2843, allocations: 3.125 kB / 437.1 MB, free: 38.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001096/0.2844, allocations: 151.8 kB / 437.2 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.808e-05/0.2845, allocations: 28.27 kB / 437.2 MB, free: 38.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.948e-05/0.2845, allocations: 11.16 kB / 437.3 MB, free: 38.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.2845, allocations: 0 / 437.3 MB, free: 38.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.731e-05/0.2845, allocations: 34.5 kB / 437.3 MB, free: 38.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.2845, allocations: 0 / 437.3 MB, free: 38.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002906/0.2848, allocations: 66.16 kB / 437.3 MB, free: 38.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.671e-05/0.2849, allocations: 58.22 kB / 437.4 MB, free: 38.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.242e-05/0.2849, allocations: 98.05 kB / 437.5 MB, free: 38.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.494e-06/0.2849, allocations: 32.58 kB / 437.5 MB, free: 38.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.477e-05/0.285, allocations: 80.14 kB / 437.6 MB, free: 38.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.115e-05/0.285, allocations: 14.89 kB / 437.6 MB, free: 38.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.499e-05/0.285, allocations: 16.5 kB / 437.6 MB, free: 38.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.35e-05/0.2851, allocations: 313.7 kB / 437.9 MB, free: 37.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.377e-05/0.2851, allocations: 2.938 kB / 438 MB, free: 37.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.14e-05/0.2851, allocations: 10.39 kB / 438 MB, free: 37.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.986e-05/0.2851, allocations: 18.67 kB / 438 MB, free: 37.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.2851, allocations: 0 / 438 MB, free: 37.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.949e-05/0.2852, allocations: 44.55 kB / 438 MB, free: 37.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.2852, allocations: 13.84 kB / 438 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.2852, allocations: 0 / 438 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.2853, allocations: 0 / 438 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.534e-05/0.2853, allocations: 9.344 kB / 438 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.2853, allocations: 0 / 438 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.122e-05/0.2854, allocations: 6.875 kB / 438.1 MB, free: 37.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.2854, allocations: 0 / 438.1 MB, free: 37.67 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.454e-05/0.2854, allocations: 117.1 kB / 438.2 MB, free: 37.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.516e-06/0.2854, allocations: 3.938 kB / 438.2 MB, free: 37.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.656e-05/0.2855, allocations: 54.44 kB / 438.2 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.2856, allocations: 0 / 438.2 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.2856, allocations: 48 / 438.2 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.2856, allocations: 7.547 kB / 438.2 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.914e-05/0.2856, allocations: 152.6 kB / 438.4 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2856, allocations: 3.938 kB / 438.4 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.488e-05/0.2857, allocations: 11.25 kB / 438.4 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.2857, allocations: 3.938 kB / 438.4 MB, free: 37.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.071e-06/0.2857, allocations: 2.938 kB / 438.4 MB, free: 37.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2857, allocations: 4 kB / 438.4 MB, free: 37.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2857, allocations: 0 / 438.4 MB, free: 37.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.422e-05/0.2858, allocations: 67.61 kB / 438.5 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.919e-05/0.2858, allocations: 87.7 kB / 438.6 MB, free: 37.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.119e-05/0.2858, allocations: 3.422 kB / 438.6 MB, free: 37.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.799e-05/0.2859, allocations: 4 kB / 438.6 MB, free: 37.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.192e-05/0.2859, allocations: 2.688 kB / 438.6 MB, free: 37.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.2859, allocations: 0 / 438.6 MB, free: 37.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 1.642e-05/0.2859, allocations: 81.94 kB / 438.6 MB, free: 37.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2859, allocations: 0 / 438.6 MB, free: 37.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001822/0.2861, allocations: 2.812 kB / 438.7 MB, free: 37.04 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.000232/0.2863, allocations: 0.6113 MB / 439.3 MB, free: 36.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.218e-05/0.2864, allocations: 10.5 kB / 439.3 MB, free: 36.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2864, allocations: 0 / 439.3 MB, free: 36.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.596e-05/0.2865, allocations: 17.91 kB / 439.3 MB, free: 36.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001358/0.2866, allocations: 0 / 439.3 MB, free: 36.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002733/0.2869, allocations: 125.9 kB / 439.4 MB, free: 36.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001168/0.287, allocations: 0.6813 MB / 440.1 MB, free: 35.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.895e-05/0.287, allocations: 0 / 440.1 MB, free: 35.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.069e-05/0.2871, allocations: 7.438 kB / 440.1 MB, free: 35.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2871, allocations: 2.438 kB / 440.1 MB, free: 35.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0168/0.3039, allocations: 0.9963 MB / 441.1 MB, free: 35.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.805/9.109, allocations: 25.3 kB / 441.1 MB, free: 35.22 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)