Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.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.Tuning_brushup.MSL_electrical_thermal_OpenLoop,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop",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.0009135/0.0009134, allocations: 98.53 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.0008366/0.0008367, allocations: 177.3 kB / 15.94 MB, free: 228 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.261/1.261, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1994/0.1994, allocations: 22.34 MB / 313.3 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002631/0.0002632, allocations: 8 kB / 381.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2485, allocations: 55.98 MB / 437.9 MB, free: 39.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.002046/0.2507, allocations: 1.83 MB / 439.7 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000704/0.2514, allocations: 0.491 MB / 440.2 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.998e-05/0.2515, allocations: 2.844 kB / 440.2 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.835e-05/0.2515, allocations: 20.31 kB / 440.2 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001422/0.2517, allocations: 69.81 kB / 440.3 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001205/0.2518, allocations: 39.92 kB / 440.3 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001776/0.252, allocations: 144.2 kB / 440.5 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001566/0.2522, allocations: 77.23 kB / 440.6 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.39e-05/0.2522, allocations: 66.38 kB / 440.6 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.2523, allocations: 73.3 kB / 440.7 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.144e-05/0.2524, allocations: 7.875 kB / 440.7 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.599e-05/0.2524, allocations: 11.31 kB / 440.7 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.267e-05/0.2524, allocations: 25.45 kB / 440.7 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.078e-05/0.2525, allocations: 66.45 kB / 440.8 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001247/0.2526, allocations: 151.9 kB / 441 MB, free: 37.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.2526, allocations: 7.938 kB / 441 MB, free: 37.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2526, allocations: 0 / 441 MB, free: 37.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.2526, allocations: 0 / 441 MB, free: 37.22 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.000446/0.2531, allocations: 444.9 kB / 441.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.2531, allocations: 8.562 kB / 441.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.302e-05/0.2532, allocations: 52.17 kB / 441.5 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.953e-05/0.2532, allocations: 26.41 kB / 441.5 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.2534, allocations: 200.3 kB / 441.7 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.2534, allocations: 12.62 kB / 441.7 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.896e-05/0.2534, allocations: 22.12 kB / 441.7 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002634/0.2537, allocations: 176 kB / 441.9 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.2537, allocations: 0 / 441.9 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.2538, allocations: 6.875 kB / 441.9 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.2538, allocations: 5.812 kB / 441.9 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002172/0.254, allocations: 120.9 kB / 442 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007293/0.2547, allocations: 0.6774 MB / 442.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.255, allocations: 127.8 kB / 442.8 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.261e-05/0.255, allocations: 3.031 kB / 442.8 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.443e-05/0.255, allocations: 38.5 kB / 442.9 MB, free: 35.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.153e-06/0.255, allocations: 0 / 442.9 MB, free: 35.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0003205/0.2553, allocations: 170.1 kB / 443 MB, free: 35.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.11e-05/0.2554, allocations: 55.41 kB / 443.1 MB, free: 35.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.161e-05/0.2554, allocations: 126.6 kB / 443.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.111e-05/0.2554, allocations: 25.7 kB / 443.2 MB, free: 35.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.14e-05/0.2555, allocations: 138 kB / 443.4 MB, free: 35.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.895e-05/0.2555, allocations: 58.33 kB / 443.4 MB, free: 35.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.582e-06/0.2555, allocations: 8 kB / 443.4 MB, free: 35.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.242e-05/0.2556, allocations: 324.8 kB / 443.7 MB, free: 34.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.661e-05/0.2557, allocations: 38.17 kB / 443.8 MB, free: 34.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.611e-05/0.2558, allocations: 74.69 kB / 443.9 MB, free: 34.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.657e-05/0.2559, allocations: 54.45 kB / 443.9 MB, free: 34.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2559, allocations: 3.938 kB / 443.9 MB, free: 34.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002094/0.2561, allocations: 158.7 kB / 444.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.2561, allocations: 5.844 kB / 444.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.2561, allocations: 2.875 kB / 444.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.2561, allocations: 0 / 444.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001506/0.2563, allocations: 45.77 kB / 444.1 MB, free: 34.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.2563, allocations: 3.125 kB / 444.1 MB, free: 34.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.877e-05/0.2564, allocations: 17.27 kB / 444.1 MB, free: 34.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.2564, allocations: 6.938 kB / 444.1 MB, free: 34.8 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (21): * Single equations (assignments): 21 * 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 6.614e-05/0.2565, allocations: 134.1 kB / 444.3 MB, free: 34.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.2565, allocations: 14.58 kB / 444.3 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.909e-05/0.2565, allocations: 20.03 kB / 444.3 MB, free: 34.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.2566, allocations: 2.844 kB / 444.3 MB, free: 34.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.2566, allocations: 0 / 444.3 MB, free: 34.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.2566, allocations: 0 / 444.3 MB, free: 34.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000188/0.2568, allocations: 263.9 kB / 444.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2568, allocations: 0 / 444.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000157/0.2569, allocations: 33.23 kB / 444.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2569, allocations: 0 / 444.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.257, allocations: 6.875 kB / 444.6 MB, free: 34.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.257, allocations: 3.375 kB / 444.6 MB, free: 34.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.257, allocations: 4 kB / 444.6 MB, free: 34.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000299/0.2573, allocations: 293.6 kB / 444.9 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.346e-05/0.2573, allocations: 88.86 kB / 445 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.2573, allocations: 6.406 kB / 445 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.2574, allocations: 9.562 kB / 445 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.603e-05/0.2575, allocations: 9 kB / 445 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.834e-06/0.2575, allocations: 6.969 kB / 445 MB, free: 34.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.154e-05/0.2575, allocations: 94.14 kB / 445.1 MB, free: 34.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2575, allocations: 2.875 kB / 445.1 MB, free: 34.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002356/0.2578, allocations: 49.88 kB / 445.2 MB, free: 33.99 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Cbody.T,Ccont.T) * 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 (16): * Single equations (assignments): 16 * 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.0004082/0.2582, allocations: 0.8195 MB / 446 MB, free: 33.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001918/0.2584, allocations: 106.9 kB / 446.1 MB, free: 33.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2584, allocations: 4 kB / 446.1 MB, free: 33.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.177e-05/0.2585, allocations: 54.42 kB / 446.1 MB, free: 33.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002022/0.2587, allocations: 18.77 kB / 446.2 MB, free: 33.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001185/0.2599, allocations: 1.493 MB / 447.7 MB, free: 32.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001157/0.26, allocations: 0.7232 MB / 448.4 MB, free: 31.33 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.453e-05/0.2601, allocations: 17.78 kB / 448.4 MB, free: 31.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.747e-05/0.2602, allocations: 45.03 kB / 448.4 MB, free: 31.29 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2602, allocations: 0 / 448.4 MB, free: 31.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.767/6.028, allocations: 2.439 MB / 450.9 MB, free: 31.09 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001515/6.028, allocations: 187.2 kB / 451.1 MB, free: 30.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.903/7.931, allocations: 0 / 451.1 MB, free: 30.84 MB / 350.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop_fmu --startTime=0 --stopTime=15000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop.fmu > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe 2>&1) Environment - environmentSimulation: