Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.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.Typical_actuation_schemes.TimeDivisionOutput,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput",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.001104/0.001104, allocations: 108 kB / 15.61 MB, free: 152 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.001167/0.001167, allocations: 197 kB / 16.53 MB, free: 6.664 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.421/1.421, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2072/0.2072, allocations: 22.36 MB / 312.8 MB, free: 12.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 63.91 kB / 380.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2525, allocations: 54.94 MB / 435.9 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.002693/0.2552, allocations: 1.819 MB / 437.7 MB, free: 38.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000937/0.2562, allocations: 0.6564 MB / 438.4 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.437e-05/0.2563, allocations: 2.938 kB / 438.4 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000238/0.2565, allocations: 28.36 kB / 438.4 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001272/0.2566, allocations: 43.75 kB / 438.4 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000247/0.2569, allocations: 122.1 kB / 438.5 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002053/0.2571, allocations: 231.4 kB / 438.8 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.2572, allocations: 55.55 kB / 438.8 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.621e-05/0.2573, allocations: 82.67 kB / 438.9 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000137/0.2575, allocations: 99.48 kB / 439 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.93e-05/0.2575, allocations: 17.94 kB / 439 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.028e-05/0.2576, allocations: 25.28 kB / 439 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.57e-05/0.2577, allocations: 51.47 kB / 439.1 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.948e-05/0.2577, allocations: 83.19 kB / 439.2 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001613/0.2579, allocations: 194.3 kB / 439.4 MB, free: 37.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2579, allocations: 0 / 439.4 MB, free: 37.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.2579, allocations: 3.938 kB / 439.4 MB, free: 37.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.2579, allocations: 0 / 439.4 MB, free: 37.33 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0009589/0.2589, allocations: 0.5692 MB / 439.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.2589, allocations: 11.44 kB / 440 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.676e-05/0.259, allocations: 47.55 kB / 440 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.238e-05/0.259, allocations: 22.84 kB / 440 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003959/0.2594, allocations: 288.8 kB / 440.3 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.2595, allocations: 5.781 kB / 440.3 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.131e-05/0.2595, allocations: 15.88 kB / 440.3 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002983/0.2598, allocations: 187 kB / 440.5 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.2598, allocations: 0 / 440.5 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/0.2599, allocations: 2.469 kB / 440.5 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.2599, allocations: 3.594 kB / 440.5 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002956/0.2602, allocations: 136.4 kB / 440.6 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007442/0.2609, allocations: 0.5365 MB / 441.2 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004654/0.2614, allocations: 178 kB / 441.4 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.2616, allocations: 90.58 kB / 441.4 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.2616, allocations: 112 / 441.4 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002389/0.2619, allocations: 202.3 kB / 441.6 MB, free: 35.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.2619, allocations: 0 / 441.6 MB, free: 35.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001456/0.2633, allocations: 0.6195 MB / 442.3 MB, free: 35.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/0.2634, allocations: 164.4 kB / 442.4 MB, free: 35.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002921/0.2637, allocations: 208.7 kB / 442.6 MB, free: 35.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.2637, allocations: 32.33 kB / 442.7 MB, free: 35.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.865e-05/0.2638, allocations: 125.1 kB / 442.8 MB, free: 35.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.2e-05/0.2638, allocations: 50.05 kB / 442.8 MB, free: 34.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.872e-05/0.2639, allocations: 34.86 kB / 442.9 MB, free: 34.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.445e-05/0.2639, allocations: 332.4 kB / 443.2 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001558/0.2641, allocations: 67.83 kB / 443.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/0.2642, allocations: 101.7 kB / 443.4 MB, free: 34.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.2653, allocations: 0.5227 MB / 443.9 MB, free: 34.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2653, allocations: 2.812 kB / 443.9 MB, free: 34.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000385/0.2657, allocations: 278.9 kB / 444.2 MB, free: 34.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/0.2658, allocations: 63.14 kB / 444.2 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.2658, allocations: 3.938 kB / 444.2 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.2658, allocations: 0 / 444.2 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001772/0.266, allocations: 34.59 kB / 444.3 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.266, allocations: 0 / 444.3 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001903/0.2662, allocations: 30.53 kB / 444.3 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.697e-05/0.2662, allocations: 2.906 kB / 444.3 MB, free: 34 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001799/0.2664, allocations: 169.9 kB / 444.5 MB, free: 33.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001005/0.2665, allocations: 71.47 kB / 444.5 MB, free: 33.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000858/0.2674, allocations: 0.5 MB / 445 MB, free: 33.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.72e-07/0.2674, allocations: 0 / 445 MB, free: 33.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0002892/0.2677, allocations: 247 kB / 445.3 MB, free: 33.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.2677, allocations: 64.91 kB / 445.3 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-06/0.2677, allocations: 0 / 445.3 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.505e-06/0.2677, allocations: 2.875 kB / 445.3 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.2679, allocations: 27.62 kB / 445.4 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.945e-06/0.2679, allocations: 3.281 kB / 445.4 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000193/0.2681, allocations: 32.91 kB / 445.4 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.2681, allocations: 2.844 kB / 445.4 MB, free: 33.29 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.TDO.timeNextEv,$PRE.TDO.tdo,TDO.timeNextEv,TDO.tdo,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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.0001075/0.2682, allocations: 230.2 kB / 445.6 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.283e-05/0.2683, allocations: 18.62 kB / 445.6 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.223e-05/0.2683, allocations: 25.16 kB / 445.7 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.2683, allocations: 2.844 kB / 445.7 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2683, allocations: 0 / 445.7 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.2683, allocations: 3.188 kB / 445.7 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001836/0.2685, allocations: 273.1 kB / 445.9 MB, free: 32.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.2685, allocations: 0 / 445.9 MB, free: 32.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.2687, allocations: 15.64 kB / 445.9 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003319/0.269, allocations: 143.5 kB / 446.1 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.189e-05/0.269, allocations: 11.38 kB / 446.1 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007276/0.2698, allocations: 0.8107 MB / 446.9 MB, free: 32.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2698, allocations: 0 / 446.9 MB, free: 32.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008118/0.2706, allocations: 0.5034 MB / 447.4 MB, free: 31.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4e-05/0.2707, allocations: 89.83 kB / 447.5 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.154e-05/0.2707, allocations: 6.844 kB / 447.5 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002181/0.2709, allocations: 25.31 kB / 447.5 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.364e-05/0.271, allocations: 16.23 kB / 447.5 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.271, allocations: 8.344 kB / 447.6 MB, free: 31.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002632/0.2713, allocations: 164.7 kB / 447.7 MB, free: 31.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2713, allocations: 0 / 447.7 MB, free: 31.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003232/0.2716, allocations: 66.03 kB / 447.8 MB, free: 31.62 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],Cfb.FO.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,TDO.tdo,TDO.timeNextEv) * Number of discrete states: 4 ($whenCondition2,TDO.timeNextEv,TDO.tdo,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001081/0.2727, allocations: 1.051 MB / 448.8 MB, free: 30.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005482/0.2733, allocations: 492.9 kB / 449.3 MB, free: 30.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2733, allocations: 0 / 449.3 MB, free: 30.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003801/0.2737, allocations: 220.2 kB / 449.5 MB, free: 30.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.2739, allocations: 33.47 kB / 449.6 MB, free: 30.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/0.2766, allocations: 2.266 MB / 451.8 MB, free: 28.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000135/0.2767, allocations: 0.7307 MB / 452.6 MB, free: 28.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001143/0.2769, allocations: 36.55 kB / 452.6 MB, free: 28.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.961e-05/0.2769, allocations: 54.88 kB / 452.6 MB, free: 28.1 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2769, allocations: 0 / 452.6 MB, free: 28.1 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02255/0.2995, allocations: 4.612 MB / 457.3 MB, free: 27.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.5, allocations: 17.52 kB / 457.3 MB, free: 27.51 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput.fmu > AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe 2>&1)