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.00471/0.00471, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001838/0.001839, allocations: 198.8 kB / 16.67 MB, free: 5.934 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09718/0.09718, allocations: 22.34 MB / 312.9 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003213/0.003213, allocations: 67.89 kB / 436.5 MB, free: 12.24 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1471, allocations: 54.95 MB / 491.5 MB, free: 5.238 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.003999/0.1512, allocations: 2.268 MB / 493.8 MB, free: 2.953 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.1523, allocations: 0.5182 MB / 494.3 MB, free: 2.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001793/0.1525, allocations: 4 kB / 494.3 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001828/0.1527, allocations: 31.66 kB / 494.3 MB, free: 2.395 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001936/0.1529, allocations: 67.45 kB / 494.4 MB, free: 2.328 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001957/0.1531, allocations: 35.95 kB / 494.4 MB, free: 2.293 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003154/0.1534, allocations: 218.9 kB / 494.6 MB, free: 2.078 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000234/0.1537, allocations: 100 kB / 494.7 MB, free: 1.977 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.1538, allocations: 75.78 kB / 494.8 MB, free: 1.902 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001834/0.154, allocations: 95.61 kB / 494.9 MB, free: 1.809 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.195e-05/0.1541, allocations: 23.94 kB / 494.9 MB, free: 1.785 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.651e-05/0.1541, allocations: 23.94 kB / 494.9 MB, free: 1.762 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.719e-05/0.1542, allocations: 39.84 kB / 495 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.1543, allocations: 95.55 kB / 495.1 MB, free: 1.629 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000314/0.1546, allocations: 211.1 kB / 495.3 MB, free: 1.422 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.1546, allocations: 0 / 495.3 MB, free: 1.422 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1546, allocations: 0 / 495.3 MB, free: 1.422 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.1547, allocations: 0 / 495.3 MB, free: 1.422 MB / 366.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.0007704/0.1554, allocations: 487.1 kB / 495.8 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.1555, allocations: 8.031 kB / 495.8 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.374e-05/0.1556, allocations: 54.73 kB / 495.8 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.666e-05/0.1556, allocations: 20.84 kB / 495.8 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003256/0.156, allocations: 212 kB / 496.1 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/0.156, allocations: 20.75 kB / 496.1 MB, free: 0.543 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.273e-05/0.156, allocations: 24.38 kB / 496.1 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003719/0.1564, allocations: 179.4 kB / 496.3 MB, free: 348 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.1564, allocations: 0 / 496.3 MB, free: 348 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.134e-05/0.1565, allocations: 8 kB / 496.3 MB, free: 340 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.1565, allocations: 4 kB / 496.3 MB, free: 336 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000298/0.1568, allocations: 121.7 kB / 496.4 MB, free: 212 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.158, allocations: 0.6759 MB / 497.1 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003297/0.1583, allocations: 130.5 kB / 497.2 MB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.1585, allocations: 68.83 kB / 497.3 MB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.1585, allocations: 0 / 497.3 MB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.1585, allocations: 38.56 kB / 497.3 MB, free: 15.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.172e-06/0.1585, allocations: 4 kB / 497.3 MB, free: 15.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004568/0.159, allocations: 165.8 kB / 497.5 MB, free: 15.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.159, allocations: 63.28 kB / 497.5 MB, free: 14.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.1592, allocations: 125.8 kB / 497.7 MB, free: 14.83 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.1592, allocations: 25.7 kB / 497.7 MB, free: 14.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.623e-05/0.1593, allocations: 144.2 kB / 497.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.886e-05/0.1594, allocations: 51.55 kB / 497.9 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.969e-05/0.1595, allocations: 41.7 kB / 497.9 MB, free: 14.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1596, allocations: 322.8 kB / 498.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.1597, allocations: 35.98 kB / 498.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.1599, allocations: 82.58 kB / 498.3 MB, free: 14.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002388/0.1601, allocations: 123.3 kB / 498.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1601, allocations: 0 / 498.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003181/0.1605, allocations: 171.5 kB / 498.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.1605, allocations: 4 kB / 498.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1605, allocations: 4 kB / 498.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.1605, allocations: 0 / 498.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001754/0.1607, allocations: 44.02 kB / 498.7 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.1607, allocations: 7.984 kB / 498.7 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.692e-05/0.1608, allocations: 11.95 kB / 498.7 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.1608, allocations: 7.984 kB / 498.7 MB, free: 13.73 MB / 382.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001334/0.161, allocations: 138.5 kB / 498.8 MB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.889e-05/0.161, allocations: 15.84 kB / 498.9 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.933e-05/0.1611, allocations: 16.84 kB / 498.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.1611, allocations: 0 / 498.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.1611, allocations: 0 / 498.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1611, allocations: 4 kB / 498.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003262/0.1614, allocations: 257.5 kB / 499.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1614, allocations: 0 / 499.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001941/0.1616, allocations: 35.98 kB / 499.2 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.1616, allocations: 4 kB / 499.2 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.1617, allocations: 0 / 499.2 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1617, allocations: 0 / 499.2 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1617, allocations: 0 / 499.2 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004635/0.1621, allocations: 297.5 kB / 499.5 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.187e-05/0.1622, allocations: 93.02 kB / 499.6 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.292e-05/0.1622, allocations: 4 kB / 499.6 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.1624, allocations: 4 kB / 499.6 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.275e-05/0.1624, allocations: 19.92 kB / 499.6 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.194e-06/0.1624, allocations: 0 / 499.6 MB, free: 12.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.243e-05/0.1625, allocations: 99.27 kB / 499.7 MB, free: 12.67 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1625, allocations: 0 / 499.7 MB, free: 12.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002727/0.1628, allocations: 51.95 kB / 499.7 MB, free: 12.62 MB / 382.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 (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.0008288/0.1636, allocations: 0.8177 MB / 0.4888 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002864/0.1639, allocations: 111.2 kB / 0.4889 GB, free: 11.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.164, allocations: 4 kB / 0.4889 GB, free: 11.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.1641, allocations: 55.92 kB / 0.489 GB, free: 11.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.1644, allocations: 21.86 kB / 0.489 GB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/0.1669, allocations: 1.913 MB / 0.4909 GB, free: 9.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004119/0.1673, allocations: 0.724 MB / 0.4916 GB, free: 8.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.956e-05/0.1674, allocations: 12.66 kB / 0.4916 GB, free: 8.809 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.496e-05/0.1675, allocations: 47.36 kB / 0.4916 GB, free: 8.766 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1675, allocations: 0 / 0.4916 GB, free: 8.766 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02642/0.1939, allocations: 2.823 MB / 0.4944 GB, free: 6.039 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.5/7.694, allocations: 4.062 kB / 0.4944 GB, free: 6.035 MB / 382.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/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)