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.001158/0.001158, allocations: 112.3 kB / 15.99 MB, free: 5.914 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.001206/0.001206, allocations: 192.3 kB / 16.91 MB, free: 5.758 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.199/1.199, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0865/0.0865, allocations: 22.32 MB / 313.1 MB, free: 9.141 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 60.34 kB / 380.9 MB, free: 41.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07224/0.07357, allocations: 54.96 MB / 435.9 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.002829/0.07643, allocations: 1.865 MB / 437.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.07746, allocations: 0.643 MB / 438.4 MB, free: 11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.907e-05/0.07758, allocations: 3.938 kB / 438.4 MB, free: 11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002331/0.07784, allocations: 19.92 kB / 438.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.078, allocations: 35.78 kB / 438.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002861/0.07829, allocations: 106.6 kB / 438.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002768/0.07858, allocations: 235.5 kB / 438.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.07871, allocations: 53.53 kB / 438.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.07884, allocations: 83.69 kB / 438.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.079, allocations: 103.6 kB / 439 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.016e-05/0.07905, allocations: 24 kB / 439 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.805e-05/0.07909, allocations: 16 kB / 439 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.052e-05/0.07917, allocations: 51.83 kB / 439.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.903e-05/0.07928, allocations: 91.52 kB / 439.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.07945, allocations: 140 kB / 439.3 MB, free: 10.06 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.07946, allocations: 4 kB / 439.3 MB, free: 10.06 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.07947, allocations: 0 / 439.3 MB, free: 10.06 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.07948, allocations: 0 / 439.3 MB, free: 10.06 MB / 318.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.001028/0.08051, allocations: 0.5838 MB / 439.9 MB, free: 9.414 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.08056, allocations: 12.03 kB / 439.9 MB, free: 9.402 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.612e-05/0.08062, allocations: 16.75 kB / 439.9 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004393/0.08106, allocations: 283.8 kB / 440.2 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.08109, allocations: 8.375 kB / 440.2 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/0.08113, allocations: 12.38 kB / 440.2 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003438/0.08148, allocations: 188.2 kB / 440.4 MB, free: 8.852 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.0815, allocations: 0 / 440.4 MB, free: 8.852 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.08152, allocations: 0 / 440.4 MB, free: 8.852 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.08153, allocations: 4 kB / 440.4 MB, free: 8.848 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002911/0.08183, allocations: 136.1 kB / 440.6 MB, free: 8.715 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008617/0.0827, allocations: 0.5397 MB / 441.1 MB, free: 8.125 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004719/0.08318, allocations: 178.4 kB / 441.3 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.08336, allocations: 88.81 kB / 441.4 MB, free: 7.852 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.08339, allocations: 4 kB / 441.4 MB, free: 7.848 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002727/0.08367, allocations: 190.7 kB / 441.6 MB, free: 7.637 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.08368, allocations: 0 / 441.6 MB, free: 7.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.001523/0.08521, allocations: 0.6245 MB / 442.2 MB, free: 6.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.275e-05/0.0853, allocations: 162.2 kB / 442.3 MB, free: 6.785 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003113/0.08562, allocations: 215.2 kB / 442.5 MB, free: 6.566 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/0.08566, allocations: 33.7 kB / 442.6 MB, free: 6.527 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.357e-05/0.08573, allocations: 124.2 kB / 442.7 MB, free: 6.398 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.843e-05/0.08578, allocations: 51.28 kB / 442.7 MB, free: 6.348 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.74e-05/0.08587, allocations: 37.7 kB / 442.8 MB, free: 6.305 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.852e-05/0.08597, allocations: 330.8 kB / 443.1 MB, free: 5.973 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.08613, allocations: 68.92 kB / 443.2 MB, free: 5.902 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001569/0.08629, allocations: 97.55 kB / 443.3 MB, free: 5.801 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00115/0.08745, allocations: 0.5254 MB / 443.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.08746, allocations: 0 / 443.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004144/0.08788, allocations: 280.8 kB / 444.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.52e-05/0.08794, allocations: 59.39 kB / 444.1 MB, free: 4.871 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.08795, allocations: 4 kB / 444.1 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.08797, allocations: 0 / 444.1 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.08815, allocations: 35.91 kB / 444.2 MB, free: 4.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.08816, allocations: 0 / 444.2 MB, free: 4.832 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001962/0.08836, allocations: 31.81 kB / 444.2 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.711e-05/0.08839, allocations: 8 kB / 444.2 MB, free: 4.793 MB / 318.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.0002063/0.0886, allocations: 164.6 kB / 444.4 MB, free: 4.633 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001083/0.08872, allocations: 69.69 kB / 444.4 MB, free: 4.559 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009563/0.08969, allocations: 498.8 kB / 444.9 MB, free: 4.027 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.228e-06/0.0897, allocations: 3.938 kB / 444.9 MB, free: 4.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.000342/0.09005, allocations: 258.8 kB / 445.2 MB, free: 3.754 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.174e-05/0.09009, allocations: 67.39 kB / 445.2 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-06/0.0901, allocations: 0 / 445.2 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-06/0.0901, allocations: 0 / 445.2 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.09025, allocations: 23.98 kB / 445.3 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.254e-06/0.09026, allocations: 0 / 445.3 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.09045, allocations: 35.81 kB / 445.3 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.09047, allocations: 4 kB / 445.3 MB, free: 3.613 MB / 318.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.0001337/0.09061, allocations: 237.7 kB / 445.5 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.46e-05/0.09065, allocations: 19.81 kB / 445.6 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.045e-05/0.09071, allocations: 21.53 kB / 445.6 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.09072, allocations: 0 / 445.6 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.09073, allocations: 0 / 445.6 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.09073, allocations: 0 / 445.6 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002337/0.09097, allocations: 277.5 kB / 445.9 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.09098, allocations: 0 / 445.9 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001279/0.09111, allocations: 15.98 kB / 445.9 MB, free: 2.996 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003364/0.09146, allocations: 150.3 kB / 446 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.09149, allocations: 8 kB / 446 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008284/0.09233, allocations: 0.7999 MB / 446.8 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.09234, allocations: 7.969 kB / 446.8 MB, free: 1.992 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008633/0.09321, allocations: 0.4941 MB / 447.3 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.002e-05/0.09328, allocations: 100.9 kB / 447.4 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.006e-05/0.09333, allocations: 8 kB / 447.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/0.09355, allocations: 27.91 kB / 447.5 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.271e-05/0.09361, allocations: 11.98 kB / 447.5 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.517e-05/0.09364, allocations: 11.94 kB / 447.5 MB, free: 1.297 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002743/0.09392, allocations: 164.2 kB / 447.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09393, allocations: 0 / 447.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002983/0.09423, allocations: 63.84 kB / 447.7 MB, free: 1.074 MB / 318.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.0001047/0.09434, allocations: 103.3 kB / 447.8 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006131/0.09496, allocations: 489.3 kB / 448.3 MB, free: 448 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.09497, allocations: 0 / 448.3 MB, free: 448 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004105/0.09539, allocations: 215.2 kB / 448.5 MB, free: 220 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002635/0.09566, allocations: 39.91 kB / 448.5 MB, free: 180 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007772/0.09645, allocations: 0.4918 MB / 449 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.09672, allocations: 0.7357 MB / 449.8 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.5e-05/0.09678, allocations: 19.44 kB / 449.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.09679, allocations: 0 / 449.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of Templates: time 0.004082/0.1009, allocations: 2.491 MB / 452.3 MB, free: 12.38 MB / 334.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)