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.001069/0.001069, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001592/0.001593, allocations: 168.7 kB / 15.95 MB, free: 204 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.45/1.45, allocations: 223.2 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2341/0.2341, allocations: 22.36 MB / 313.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000567/0.0005673, allocations: 11.98 kB / 382 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3276, allocations: 55.97 MB / 438 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.001941/0.3296, allocations: 1.499 MB / 439.5 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008668/0.3305, allocations: 0.6114 MB / 440.1 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.268e-05/0.3306, allocations: 10.84 kB / 440.1 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002447/0.3308, allocations: 12.69 kB / 440.1 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.331, allocations: 45.58 kB / 440.2 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002484/0.3312, allocations: 91.27 kB / 440.3 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001958/0.3314, allocations: 187.3 kB / 440.5 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.3316, allocations: 42.11 kB / 440.5 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.549e-05/0.3317, allocations: 74.5 kB / 440.6 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.3318, allocations: 87.81 kB / 440.7 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.852e-05/0.3318, allocations: 8.469 kB / 440.7 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.001e-05/0.3319, allocations: 9.844 kB / 440.7 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.333e-05/0.3319, allocations: 36 kB / 440.7 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.64e-05/0.332, allocations: 52.89 kB / 440.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001476/0.3321, allocations: 142.9 kB / 440.9 MB, free: 37.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3322, allocations: 2.875 kB / 440.9 MB, free: 37.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3322, allocations: 0 / 440.9 MB, free: 37.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.3322, allocations: 0 / 440.9 MB, free: 37.14 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.0009421/0.3331, allocations: 0.5441 MB / 441.5 MB, free: 36.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3332, allocations: 8.938 kB / 441.5 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.815e-05/0.3332, allocations: 51.81 kB / 441.5 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.083e-05/0.3333, allocations: 23.47 kB / 441.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004262/0.3337, allocations: 258.1 kB / 441.8 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.069e-05/0.3338, allocations: 17.12 kB / 441.8 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.957e-05/0.3338, allocations: 17.23 kB / 441.8 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003533/0.3342, allocations: 181.7 kB / 442 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.3342, allocations: 3.953 kB / 442 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.213e-05/0.3342, allocations: 10.81 kB / 442 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.3342, allocations: 2.688 kB / 442 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002949/0.3345, allocations: 140.9 kB / 442.2 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008644/0.3354, allocations: 0.5366 MB / 442.7 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004788/0.3359, allocations: 188.3 kB / 442.9 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.3361, allocations: 89.09 kB / 443 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.3361, allocations: 10.97 kB / 443 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002749/0.3364, allocations: 204.1 kB / 443.2 MB, free: 35.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.3364, allocations: 0 / 443.2 MB, free: 35.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001459/0.3379, allocations: 0.6749 MB / 443.8 MB, free: 35.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.806e-05/0.3379, allocations: 163.1 kB / 444 MB, free: 35.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002924/0.3382, allocations: 216 kB / 444.2 MB, free: 34.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.3383, allocations: 25.7 kB / 444.2 MB, free: 34.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.901e-05/0.3384, allocations: 127.9 kB / 444.4 MB, free: 34.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.493e-05/0.3384, allocations: 48.2 kB / 444.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.07e-05/0.3384, allocations: 2.781 kB / 444.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.346e-05/0.3385, allocations: 332.5 kB / 444.7 MB, free: 34.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.3387, allocations: 67.66 kB / 444.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/0.3388, allocations: 86.5 kB / 444.9 MB, free: 34.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000175/0.339, allocations: 141.3 kB / 445 MB, free: 34.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.339, allocations: 3.953 kB / 445 MB, free: 34.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003866/0.3394, allocations: 282 kB / 445.3 MB, free: 34.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.494e-05/0.3395, allocations: 153.3 kB / 445.5 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.3395, allocations: 2.812 kB / 445.5 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.3395, allocations: 0 / 445.5 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.3397, allocations: 34.25 kB / 445.5 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.3397, allocations: 3.594 kB / 445.5 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001666/0.3399, allocations: 31.84 kB / 445.5 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.797e-05/0.3399, allocations: 14.86 kB / 445.5 MB, free: 33.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.422e-06/0.3399, allocations: 7.969 kB / 445.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002767/0.3402, allocations: 222 kB / 445.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-06/0.3402, allocations: 0 / 445.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.095e-06/0.3402, allocations: 6.516 kB / 445.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.3403, allocations: 21.19 kB / 445.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.996e-06/0.3404, allocations: 2.625 kB / 445.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.3405, allocations: 33.47 kB / 445.8 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.3405, allocations: 6.875 kB / 445.8 MB, free: 33.84 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 ($whenCondition1,$whenCondition2,$PRE.TDO.tdo,TDO.tdo,$PRE.TDO.timeNextEv,TDO.timeNextEv) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001684/0.3407, allocations: 253.7 kB / 446.1 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.888e-05/0.3407, allocations: 20.86 kB / 446.1 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.439e-05/0.3408, allocations: 27.38 kB / 446.1 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.3408, allocations: 0 / 446.1 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3408, allocations: 3.047 kB / 446.1 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.3408, allocations: 0 / 446.1 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001969/0.341, allocations: 277.9 kB / 446.4 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.341, allocations: 4 kB / 446.4 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/0.3412, allocations: 17.86 kB / 446.4 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003759/0.3415, allocations: 152.7 kB / 446.6 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/0.3416, allocations: 15 kB / 446.6 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007587/0.3423, allocations: 0.8252 MB / 447.4 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3424, allocations: 0 / 447.4 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008678/0.3432, allocations: 0.5304 MB / 447.9 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.886e-05/0.3433, allocations: 90.36 kB / 448 MB, free: 32.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.181e-05/0.3433, allocations: 12.98 kB / 448.1 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001911/0.3435, allocations: 27.47 kB / 448.1 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.17e-05/0.3436, allocations: 16.62 kB / 448.1 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.3436, allocations: 2.938 kB / 448.1 MB, free: 32.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000245/0.3439, allocations: 167.7 kB / 448.3 MB, free: 32.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3439, allocations: 3.938 kB / 448.3 MB, free: 32.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003024/0.3442, allocations: 63.19 kB / 448.3 MB, free: 32.15 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001034/0.3452, allocations: 1.073 MB / 449.4 MB, free: 31.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005537/0.3458, allocations: 490.4 kB / 449.9 MB, free: 31.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3458, allocations: 0 / 449.9 MB, free: 31.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004068/0.3462, allocations: 235.1 kB / 450.1 MB, free: 30.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.3465, allocations: 32.91 kB / 450.1 MB, free: 30.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002078/0.3486, allocations: 1.282 MB / 451.4 MB, free: 30.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001676/0.3488, allocations: 0.7327 MB / 452.2 MB, free: 29.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001107/0.3489, allocations: 34.39 kB / 452.2 MB, free: 29.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.382e-05/0.349, allocations: 54.8 kB / 452.2 MB, free: 29.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.349, allocations: 0 / 452.2 MB, free: 29.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01482/0.3638, allocations: 4.212 MB / 456.5 MB, free: 29.15 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001434/0.364, allocations: 212.5 kB / 456.7 MB, free: 28.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.789/2.153, allocations: 0 / 456.7 MB, free: 28.91 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/linux/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) Environment - environmentSimulation: