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: translateModel(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput") translateModel(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009986/0.000999, allocations: 92 kB / 15.36 MB, free: 0.7383 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.006886/0.006886, allocations: 170.7 kB / 16.26 MB, free: 6.613 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.437/1.437, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2622/0.2622, allocations: 22.35 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003332/0.0003332, allocations: 15.94 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3336, allocations: 55.97 MB / 438.6 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.001672/0.3353, allocations: 1.527 MB / 440.1 MB, free: 38.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009391/0.3362, allocations: 0.6444 MB / 440.7 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.268e-05/0.3363, allocations: 0 / 440.7 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002573/0.3366, allocations: 22.38 kB / 440.8 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001318/0.3367, allocations: 34.67 kB / 440.8 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002515/0.337, allocations: 112.8 kB / 440.9 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002039/0.3372, allocations: 212.4 kB / 441.1 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.3373, allocations: 48.48 kB / 441.2 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.97e-05/0.3374, allocations: 65.52 kB / 441.2 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001381/0.3376, allocations: 94 kB / 441.3 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.802e-05/0.3376, allocations: 5.781 kB / 441.3 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.962e-05/0.3376, allocations: 5.312 kB / 441.3 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.055e-05/0.3377, allocations: 40.95 kB / 441.4 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.562e-05/0.3378, allocations: 94.12 kB / 441.5 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001577/0.338, allocations: 174.4 kB / 441.6 MB, free: 37.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.338, allocations: 0 / 441.6 MB, free: 37.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.338, allocations: 0 / 441.6 MB, free: 37.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.338, allocations: 4 kB / 441.6 MB, free: 37.72 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.0009007/0.3389, allocations: 0.5506 MB / 442.2 MB, free: 37.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.3389, allocations: 12.22 kB / 442.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.458e-05/0.339, allocations: 19.69 kB / 442.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004821/0.3395, allocations: 280.1 kB / 442.5 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.635e-05/0.3395, allocations: 12.59 kB / 442.5 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.952e-05/0.3396, allocations: 14.03 kB / 442.5 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003834/0.34, allocations: 191.1 kB / 442.7 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.34, allocations: 0 / 442.7 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.09e-05/0.34, allocations: 6.688 kB / 442.7 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.3401, allocations: 2.844 kB / 442.7 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002892/0.3403, allocations: 134.3 kB / 442.8 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008013/0.3412, allocations: 0.55 MB / 443.4 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004808/0.3417, allocations: 201.8 kB / 443.6 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.3418, allocations: 93.19 kB / 443.7 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.3419, allocations: 0 / 443.7 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002632/0.3421, allocations: 207.7 kB / 443.9 MB, free: 36.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.675e-06/0.3421, allocations: 0 / 443.9 MB, free: 36.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001584/0.3437, allocations: 0.6709 MB / 444.6 MB, free: 35.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.3438, allocations: 164.8 kB / 444.7 MB, free: 35.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003396/0.3441, allocations: 218.4 kB / 444.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.3442, allocations: 32.58 kB / 445 MB, free: 35.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.339e-05/0.3442, allocations: 119.6 kB / 445.1 MB, free: 35.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.082e-05/0.3443, allocations: 52.23 kB / 445.1 MB, free: 35.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.263e-05/0.3443, allocations: 22.92 kB / 445.1 MB, free: 35.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.86e-05/0.3444, allocations: 332 kB / 445.5 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001411/0.3445, allocations: 70.73 kB / 445.5 MB, free: 35.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/0.3447, allocations: 93.69 kB / 445.6 MB, free: 34.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/0.3459, allocations: 0.5433 MB / 446.2 MB, free: 34.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.3459, allocations: 2.438 kB / 446.2 MB, free: 34.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004174/0.3463, allocations: 287.4 kB / 446.5 MB, free: 34.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.629e-05/0.3464, allocations: 149.2 kB / 446.6 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.3464, allocations: 0 / 446.6 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.3464, allocations: 2.594 kB / 446.6 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.3466, allocations: 31.39 kB / 446.6 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.3466, allocations: 0 / 446.6 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.3468, allocations: 42.69 kB / 446.7 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.645e-05/0.3468, allocations: 6.656 kB / 446.7 MB, free: 34.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.422e-06/0.3468, allocations: 6.062 kB / 446.7 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003084/0.3472, allocations: 225.2 kB / 446.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-06/0.3472, allocations: 0 / 446.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-06/0.3472, allocations: 3.031 kB / 446.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.3473, allocations: 25.08 kB / 446.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.375e-06/0.3473, allocations: 6.375 kB / 446.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001706/0.3475, allocations: 36.89 kB / 447 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.3475, allocations: 2.125 kB / 447 MB, free: 34.2 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.0001808/0.3477, allocations: 251.3 kB / 447.2 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.245e-05/0.3477, allocations: 20.69 kB / 447.2 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.405e-05/0.3478, allocations: 22.64 kB / 447.3 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.3478, allocations: 0 / 447.3 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3478, allocations: 7.625 kB / 447.3 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.3478, allocations: 0 / 447.3 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002231/0.3481, allocations: 280.9 kB / 447.6 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3481, allocations: 0 / 447.6 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.3482, allocations: 15.09 kB / 447.6 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003695/0.3486, allocations: 151.7 kB / 447.7 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/0.3486, allocations: 8.922 kB / 447.7 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007734/0.3494, allocations: 0.8356 MB / 448.6 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3494, allocations: 2.844 kB / 448.6 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009481/0.3504, allocations: 0.5249 MB / 449.1 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.506e-05/0.3504, allocations: 102.5 kB / 449.2 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.838e-05/0.3505, allocations: 6.938 kB / 449.2 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/0.3507, allocations: 38.44 kB / 449.2 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.635e-05/0.3508, allocations: 6.25 kB / 449.2 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.3508, allocations: 8.859 kB / 449.2 MB, free: 32.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002511/0.3511, allocations: 165.8 kB / 449.4 MB, free: 32.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3511, allocations: 0 / 449.4 MB, free: 32.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003126/0.3514, allocations: 62.97 kB / 449.5 MB, free: 32.5 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.0001081/0.3515, allocations: 110.9 kB / 449.6 MB, free: 32.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005839/0.3521, allocations: 487.4 kB / 450.1 MB, free: 32.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3521, allocations: 0 / 450.1 MB, free: 32.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004575/0.3526, allocations: 238.1 kB / 450.3 MB, free: 31.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/0.3529, allocations: 26.5 kB / 450.3 MB, free: 31.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008578/0.3538, allocations: 496.1 kB / 450.8 MB, free: 31.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001869/0.354, allocations: 0.7347 MB / 451.5 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001258/0.3541, allocations: 38.19 kB / 451.6 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.851e-05/0.3541, allocations: 14.16 kB / 451.6 MB, free: 30.94 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3541, allocations: 0 / 451.6 MB, free: 30.94 MB / 350.1 MB Notification: Performance of Templates: time 0.006741/0.3609, allocations: 2.437 MB / 454 MB, free: 30.73 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.makefile (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 & ./AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe 2>&1)