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.001017/0.001017, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.00105/0.00105, allocations: 172.7 kB / 15.95 MB, free: 208 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.426/1.426, allocations: 223.3 MB / 240 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.236/0.236, allocations: 22.35 MB / 313.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003313/0.0003314, allocations: 8 kB / 382 MB, free: 10.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3171, allocations: 55.98 MB / 438 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.OOM_Intro.HelloWorld_inverse): time 0.0006836/0.3179, allocations: 233.1 kB / 438.2 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001843/0.3181, allocations: 36.19 kB / 438.3 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.265e-05/0.3181, allocations: 0 / 438.3 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.347e-05/0.3181, allocations: 0 / 438.3 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.729e-05/0.3182, allocations: 2.906 kB / 438.3 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001823/0.3184, allocations: 3.328 kB / 438.3 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.529e-05/0.3184, allocations: 11.12 kB / 438.3 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.685e-05/0.3185, allocations: 2.844 kB / 438.3 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.073e-05/0.3185, allocations: 0 / 438.3 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.448e-05/0.3186, allocations: 10.33 kB / 438.3 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.64e-05/0.3186, allocations: 0 / 438.3 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.303e-06/0.3186, allocations: 7.938 kB / 438.3 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.431e-05/0.3187, allocations: 3.125 kB / 438.3 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.439e-05/0.3187, allocations: 25.7 kB / 438.3 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 3.739e-05/0.3187, allocations: 3.422 kB / 438.4 MB, free: 39.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.3187, allocations: 0 / 438.4 MB, free: 39.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.168e-06/0.3188, allocations: 0 / 438.4 MB, free: 39.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.3188, allocations: 7 kB / 438.4 MB, free: 39.07 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.0003991/0.3192, allocations: 324 kB / 438.7 MB, free: 38.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.3192, allocations: 8.531 kB / 438.7 MB, free: 38.72 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.492e-05/0.3193, allocations: 34.56 kB / 438.7 MB, free: 38.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.767e-05/0.3193, allocations: 2.688 kB / 438.7 MB, free: 38.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.3194, allocations: 163 kB / 438.9 MB, free: 38.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.3194, allocations: 0 / 438.9 MB, free: 38.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.437e-05/0.3195, allocations: 6.484 kB / 438.9 MB, free: 38.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001157/0.3196, allocations: 39.95 kB / 438.9 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.3196, allocations: 3.953 kB / 438.9 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-06/0.3196, allocations: 0 / 438.9 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.3196, allocations: 0 / 438.9 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.158e-05/0.3197, allocations: 7.406 kB / 438.9 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001465/0.3198, allocations: 155.2 kB / 439.1 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.618e-05/0.3199, allocations: 23.66 kB / 439.1 MB, free: 38.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.348e-05/0.3199, allocations: 11.7 kB / 439.1 MB, free: 38.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.484e-05/0.3199, allocations: 0 / 439.1 MB, free: 38.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.703e-05/0.32, allocations: 32.69 kB / 439.2 MB, free: 38.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 7.01e-07/0.32, allocations: 2.812 kB / 439.2 MB, free: 38.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003235/0.3203, allocations: 71.69 kB / 439.2 MB, free: 38.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.717e-05/0.3203, allocations: 51.41 kB / 439.3 MB, free: 38.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.098e-05/0.3204, allocations: 92.67 kB / 439.4 MB, free: 37.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.3204, allocations: 25.7 kB / 439.4 MB, free: 37.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.669e-05/0.3205, allocations: 86.95 kB / 439.5 MB, free: 37.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.65e-05/0.3205, allocations: 15.22 kB / 439.5 MB, free: 37.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-06/0.3205, allocations: 0 / 439.5 MB, free: 37.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.348e-05/0.3206, allocations: 317.7 kB / 439.8 MB, free: 37.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.414e-05/0.3206, allocations: 6.781 kB / 439.8 MB, free: 37.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.124e-05/0.3206, allocations: 6.188 kB / 439.8 MB, free: 37.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.388e-05/0.3207, allocations: 2.812 kB / 439.8 MB, free: 37.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-07/0.3207, allocations: 7.875 kB / 439.8 MB, free: 37.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.244e-05/0.3207, allocations: 45.14 kB / 439.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.3208, allocations: 3.906 kB / 439.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3208, allocations: 0 / 439.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.3208, allocations: 3.953 kB / 439.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.974e-05/0.3209, allocations: 7.594 kB / 439.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3209, allocations: 7.469 kB / 439.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.093e-05/0.3209, allocations: 2.25 kB / 439.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.3209, allocations: 0 / 439.9 MB, free: 37.45 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 5.118e-05/0.321, allocations: 112.7 kB / 440 MB, free: 37.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.412e-06/0.321, allocations: 0 / 440 MB, free: 37.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001065/0.3211, allocations: 53.41 kB / 440.1 MB, free: 37.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.3211, allocations: 6.031 kB / 440.1 MB, free: 37.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3211, allocations: 3.953 kB / 440.1 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3211, allocations: 4 kB / 440.1 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.421e-05/0.3212, allocations: 156.2 kB / 440.2 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.3212, allocations: 0 / 440.2 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.44e-05/0.3213, allocations: 8.219 kB / 440.2 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.3213, allocations: 0 / 440.2 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.3213, allocations: 0 / 440.2 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3213, allocations: 3.938 kB / 440.2 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3213, allocations: 2.469 kB / 440.2 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.807e-05/0.3214, allocations: 82.94 kB / 440.3 MB, free: 36.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.455e-05/0.3214, allocations: 77.11 kB / 440.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.3214, allocations: 6.625 kB / 440.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.886e-05/0.3215, allocations: 0 / 440.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.703e-05/0.3215, allocations: 0 / 440.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.257e-06/0.3215, allocations: 2.875 kB / 440.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.478e-05/0.3215, allocations: 79.23 kB / 440.5 MB, free: 36.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3215, allocations: 0 / 440.5 MB, free: 36.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002075/0.3217, allocations: 2.875 kB / 440.5 MB, free: 36.81 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.0002428/0.322, allocations: 0.6056 MB / 441.1 MB, free: 36.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.705e-05/0.3221, allocations: 20.62 kB / 441.1 MB, free: 36.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3221, allocations: 0 / 441.1 MB, free: 36.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.344e-05/0.3221, allocations: 10.03 kB / 441.1 MB, free: 36.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.3222, allocations: 0 / 441.1 MB, free: 36.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002731/0.3225, allocations: 131.5 kB / 441.2 MB, free: 36.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001004/0.3226, allocations: 0.6756 MB / 441.9 MB, free: 35.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.993e-05/0.3227, allocations: 0 / 441.9 MB, free: 35.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.926e-05/0.3227, allocations: 10.62 kB / 441.9 MB, free: 35.35 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3227, allocations: 0 / 441.9 MB, free: 35.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01056/0.3333, allocations: 0.8433 MB / 442.8 MB, free: 35.21 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001371/0.3334, allocations: 166.5 kB / 442.9 MB, free: 34.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.622/1.955, allocations: 3.938 kB / 442.9 MB, free: 34.96 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: