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.001157/0.001157, allocations: 99.16 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.001225/0.001225, allocations: 177.3 kB / 15.95 MB, free: 216 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.559/1.559, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2705/0.2705, allocations: 22.34 MB / 313.3 MB, free: 13.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003305/0.0003308, allocations: 8 kB / 381.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3137, allocations: 55.99 MB / 437.9 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.001882/0.3156, allocations: 1.485 MB / 439.4 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009706/0.3166, allocations: 0.609 MB / 440 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.3168, allocations: 2.406 kB / 440 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003054/0.3171, allocations: 20.59 kB / 440 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001361/0.3172, allocations: 42.2 kB / 440.1 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003119/0.3176, allocations: 98.08 kB / 440.2 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001878/0.3178, allocations: 115.2 kB / 440.3 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.3179, allocations: 40.98 kB / 440.3 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.318, allocations: 81.48 kB / 440.4 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001458/0.3182, allocations: 81.39 kB / 440.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.748e-05/0.3182, allocations: 9.562 kB / 440.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.399e-05/0.3183, allocations: 7.75 kB / 440.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.418e-05/0.3183, allocations: 37.28 kB / 440.5 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.45e-05/0.3184, allocations: 53.83 kB / 440.6 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001569/0.3186, allocations: 138.2 kB / 440.7 MB, free: 37.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.3186, allocations: 0 / 440.7 MB, free: 37.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3186, allocations: 2.875 kB / 440.7 MB, free: 37.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.3186, allocations: 0 / 440.7 MB, free: 37.41 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.0009724/0.3196, allocations: 0.5522 MB / 441.3 MB, free: 36.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.3196, allocations: 8.344 kB / 441.3 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.321e-05/0.3197, allocations: 47.77 kB / 441.3 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.052e-05/0.3197, allocations: 23.06 kB / 441.3 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004497/0.3202, allocations: 265.1 kB / 441.6 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.3202, allocations: 10.03 kB / 441.6 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.893e-05/0.3203, allocations: 12.69 kB / 441.6 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003402/0.3206, allocations: 181.3 kB / 441.8 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.3206, allocations: 6.922 kB / 441.8 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.3207, allocations: 4 kB / 441.8 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.3207, allocations: 7.156 kB / 441.8 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003062/0.321, allocations: 138.6 kB / 442 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008434/0.3218, allocations: 0.5398 MB / 442.5 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004743/0.3223, allocations: 200.8 kB / 442.7 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.298e-05/0.3224, allocations: 0 / 442.7 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002653/0.3226, allocations: 200.1 kB / 442.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.3227, allocations: 0 / 442.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001531/0.3242, allocations: 0.6713 MB / 443.6 MB, free: 35.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.43e-05/0.3243, allocations: 164.4 kB / 443.7 MB, free: 35.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003002/0.3246, allocations: 220.1 kB / 443.9 MB, free: 35.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.3246, allocations: 28.33 kB / 444 MB, free: 35.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.377e-05/0.3247, allocations: 126.9 kB / 444.1 MB, free: 35.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.74e-05/0.3247, allocations: 47.06 kB / 444.1 MB, free: 35.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.558e-06/0.3247, allocations: 0 / 444.1 MB, free: 35.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.112e-05/0.3248, allocations: 330.2 kB / 444.4 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.325, allocations: 73.19 kB / 444.5 MB, free: 34.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/0.3251, allocations: 86.31 kB / 444.6 MB, free: 34.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001786/0.3253, allocations: 144.8 kB / 444.7 MB, free: 34.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3253, allocations: 4.031 kB / 444.7 MB, free: 34.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003909/0.3257, allocations: 281.8 kB / 445 MB, free: 34.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.845e-05/0.3258, allocations: 147.7 kB / 445.2 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.3258, allocations: 0 / 445.2 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.3258, allocations: 4 kB / 445.2 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001845/0.326, allocations: 45.22 kB / 445.2 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.326, allocations: 0 / 445.2 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000186/0.3262, allocations: 32.38 kB / 445.2 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.3262, allocations: 7.531 kB / 445.3 MB, free: 34.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.392e-06/0.3262, allocations: 3.812 kB / 445.3 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002772/0.3265, allocations: 227 kB / 445.5 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-06/0.3265, allocations: 4 kB / 445.5 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-06/0.3266, allocations: 0 / 445.5 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/0.3267, allocations: 28.25 kB / 445.5 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.535e-06/0.3267, allocations: 3.281 kB / 445.5 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.3269, allocations: 34.11 kB / 445.5 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.3269, allocations: 2.875 kB / 445.6 MB, free: 34.13 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.0001848/0.3271, allocations: 247.9 kB / 445.8 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.936e-05/0.3271, allocations: 20.45 kB / 445.8 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.507e-05/0.3272, allocations: 26.28 kB / 445.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.3272, allocations: 0 / 445.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3272, allocations: 2.812 kB / 445.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.3272, allocations: 0 / 445.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002081/0.3274, allocations: 276.4 kB / 446.1 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.3274, allocations: 0 / 446.1 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001193/0.3276, allocations: 15.56 kB / 446.1 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003895/0.328, allocations: 153.4 kB / 446.3 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.55e-05/0.328, allocations: 14.36 kB / 446.3 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007637/0.3288, allocations: 0.8292 MB / 447.1 MB, free: 32.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.3288, allocations: 3.984 kB / 447.1 MB, free: 32.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008314/0.3296, allocations: 0.5327 MB / 447.7 MB, free: 32.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.229e-05/0.3297, allocations: 94.08 kB / 447.7 MB, free: 32.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.862e-05/0.3297, allocations: 9.719 kB / 447.8 MB, free: 32.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/0.3299, allocations: 30.58 kB / 447.8 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.629e-05/0.33, allocations: 15.72 kB / 447.8 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.33, allocations: 2.969 kB / 447.8 MB, free: 32.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002364/0.3303, allocations: 162.7 kB / 448 MB, free: 32.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3303, allocations: 0 / 448 MB, free: 32.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003063/0.3306, allocations: 68.08 kB / 448 MB, free: 32.44 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.3316, allocations: 1.072 MB / 449.1 MB, free: 31.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005465/0.3322, allocations: 484.1 kB / 449.6 MB, free: 31.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3322, allocations: 0 / 449.6 MB, free: 31.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004205/0.3326, allocations: 241.6 kB / 449.8 MB, free: 31.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002165/0.3329, allocations: 32.38 kB / 449.8 MB, free: 31.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002048/0.3349, allocations: 1.268 MB / 451.1 MB, free: 30.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001427/0.3351, allocations: 0.7498 MB / 451.9 MB, free: 29.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001005/0.3352, allocations: 34.81 kB / 451.9 MB, free: 29.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.475e-05/0.3353, allocations: 52.33 kB / 451.9 MB, free: 29.79 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3353, allocations: 0 / 451.9 MB, free: 29.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01452/0.3498, allocations: 4.193 MB / 456.1 MB, free: 29.44 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001346/0.35, allocations: 206.5 kB / 456.3 MB, free: 29.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.764/2.114, allocations: 0 / 456.3 MB, free: 29.2 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: