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.0009157/0.0009156, allocations: 98.77 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.0009888/0.0009888, allocations: 177.3 kB / 15.94 MB, free: 228 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.46/1.46, allocations: 223.2 MB / 239.9 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2643/0.2643, allocations: 22.34 MB / 313.3 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003438/0.0003441, allocations: 7.938 kB / 381.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3427, allocations: 55.98 MB / 437.8 MB, free: 39.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.001802/0.3446, allocations: 1.501 MB / 439.3 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009579/0.3456, allocations: 0.5987 MB / 439.9 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001506/0.3458, allocations: 2.75 kB / 439.9 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002774/0.3461, allocations: 24.34 kB / 439.9 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000171/0.3462, allocations: 37.39 kB / 440 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003406/0.3466, allocations: 95.56 kB / 440.1 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002261/0.3468, allocations: 124.9 kB / 440.2 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.347, allocations: 40.33 kB / 440.2 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001544/0.3471, allocations: 74.25 kB / 440.3 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001587/0.3473, allocations: 82.33 kB / 440.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.691e-05/0.3474, allocations: 5.312 kB / 440.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.72e-05/0.3474, allocations: 8.781 kB / 440.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.553e-05/0.3475, allocations: 44.06 kB / 440.4 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.838e-05/0.3475, allocations: 58.83 kB / 440.5 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001601/0.3477, allocations: 136 kB / 440.6 MB, free: 37.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.3477, allocations: 4 kB / 440.6 MB, free: 37.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3477, allocations: 0 / 440.6 MB, free: 37.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.3477, allocations: 0 / 440.6 MB, free: 37.36 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.0009955/0.3487, allocations: 0.5508 MB / 441.2 MB, free: 36.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.3488, allocations: 10.09 kB / 441.2 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.213e-05/0.3488, allocations: 17.72 kB / 441.2 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004645/0.3493, allocations: 264.3 kB / 441.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.3494, allocations: 9.188 kB / 441.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.782e-05/0.3494, allocations: 14.34 kB / 441.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003364/0.3497, allocations: 186.5 kB / 441.7 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.3498, allocations: 3.281 kB / 441.7 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.602e-05/0.3498, allocations: 10.77 kB / 441.7 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.3498, allocations: 3.094 kB / 441.7 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002809/0.3501, allocations: 137.4 kB / 441.8 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008591/0.351, allocations: 0.5378 MB / 442.4 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004729/0.3515, allocations: 198 kB / 442.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.3515, allocations: 6.797 kB / 442.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002671/0.3518, allocations: 199.1 kB / 442.8 MB, free: 35.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.3518, allocations: 0 / 442.8 MB, free: 35.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001553/0.3533, allocations: 0.6741 MB / 443.4 MB, free: 35.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.407e-05/0.3534, allocations: 161.2 kB / 443.6 MB, free: 35.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003073/0.3537, allocations: 221.8 kB / 443.8 MB, free: 35.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.3538, allocations: 28.58 kB / 443.8 MB, free: 35.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.825e-05/0.3538, allocations: 122.5 kB / 443.9 MB, free: 35.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.797e-05/0.3539, allocations: 44.34 kB / 444 MB, free: 35.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.084e-05/0.3539, allocations: 4 kB / 444 MB, free: 35.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.872e-05/0.354, allocations: 330.9 kB / 444.3 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001426/0.3541, allocations: 61.98 kB / 444.4 MB, free: 34.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001533/0.3543, allocations: 96.89 kB / 444.5 MB, free: 34.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001815/0.3545, allocations: 135.6 kB / 444.6 MB, free: 34.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3545, allocations: 0 / 444.6 MB, free: 34.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004058/0.3549, allocations: 289.2 kB / 444.9 MB, free: 34.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.553e-05/0.355, allocations: 150.4 kB / 445 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.413e-06/0.355, allocations: 3.953 kB / 445 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.355, allocations: 2.844 kB / 445 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/0.3552, allocations: 29.7 kB / 445.1 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.3552, allocations: 10.56 kB / 445.1 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001868/0.3554, allocations: 35.25 kB / 445.1 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.966e-05/0.3554, allocations: 2.812 kB / 445.1 MB, free: 34.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.477e-06/0.3555, allocations: 5.531 kB / 445.1 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002816/0.3557, allocations: 232.4 kB / 445.4 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-06/0.3558, allocations: 0 / 445.4 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.507e-06/0.3558, allocations: 2.844 kB / 445.4 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.3559, allocations: 29.44 kB / 445.4 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.3559, allocations: 3.062 kB / 445.4 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001827/0.3561, allocations: 30.8 kB / 445.4 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.3561, allocations: 6.844 kB / 445.4 MB, free: 34.14 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.0001863/0.3563, allocations: 249.8 kB / 445.7 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.165e-05/0.3564, allocations: 24.73 kB / 445.7 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.289e-05/0.3564, allocations: 30.92 kB / 445.7 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-06/0.3564, allocations: 0 / 445.7 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3564, allocations: 0 / 445.7 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.3564, allocations: 3 kB / 445.7 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001994/0.3566, allocations: 268 kB / 446 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.3567, allocations: 0 / 446 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.3568, allocations: 12.61 kB / 446 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003887/0.3572, allocations: 160.4 kB / 446.2 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.3572, allocations: 7.859 kB / 446.2 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007825/0.358, allocations: 0.8312 MB / 447 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.358, allocations: 0 / 447 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008216/0.3588, allocations: 0.5305 MB / 447.5 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.283e-05/0.3589, allocations: 91.22 kB / 447.6 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.02e-05/0.3589, allocations: 6.156 kB / 447.6 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/0.3591, allocations: 32.45 kB / 447.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.368e-05/0.3592, allocations: 10.09 kB / 447.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.3592, allocations: 9.625 kB / 447.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002382/0.3595, allocations: 166.2 kB / 447.8 MB, free: 32.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3595, allocations: 3.938 kB / 447.8 MB, free: 32.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003132/0.3598, allocations: 65.94 kB / 447.9 MB, free: 32.45 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.0001074/0.3599, allocations: 104.8 kB / 448 MB, free: 32.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006695/0.3606, allocations: 495.9 kB / 448.5 MB, free: 32.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3606, allocations: 2.75 kB / 448.5 MB, free: 32.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004802/0.3611, allocations: 238.8 kB / 448.7 MB, free: 31.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002663/0.3614, allocations: 22.84 kB / 448.7 MB, free: 31.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009153/0.3623, allocations: 472.1 kB / 449.2 MB, free: 31.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.3626, allocations: 0.7348 MB / 449.9 MB, free: 30.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001318/0.3627, allocations: 39.95 kB / 450 MB, free: 30.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.633e-05/0.3628, allocations: 14.53 kB / 450 MB, free: 30.91 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3628, allocations: 0 / 450 MB, free: 30.91 MB / 350.1 MB Notification: Performance of Templates: time 0.005894/0.3687, allocations: 2.353 MB / 452.3 MB, free: 30.7 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: