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.001679/0.001679, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00196/0.00196, allocations: 192.6 kB / 16.13 MB, free: 6.691 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.358/1.358, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2412/0.2412, allocations: 22.35 MB / 312.3 MB, free: 12.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 67.89 kB / 380.1 MB, free: 11.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2968, allocations: 54.94 MB / 435 MB, free: 39.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.002476/0.2993, allocations: 1.881 MB / 436.9 MB, free: 38.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008626/0.3002, allocations: 0.6496 MB / 437.6 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.669e-05/0.3003, allocations: 6.531 kB / 437.6 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002623/0.3006, allocations: 16.73 kB / 437.6 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001276/0.3007, allocations: 35.7 kB / 437.6 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000236/0.301, allocations: 112.4 kB / 437.7 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001794/0.3012, allocations: 209.2 kB / 437.9 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.3013, allocations: 56.52 kB / 438 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.94e-05/0.3014, allocations: 74.88 kB / 438.1 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001364/0.3015, allocations: 95.25 kB / 438.2 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.588e-05/0.3016, allocations: 10.97 kB / 438.2 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.645e-05/0.3016, allocations: 7.188 kB / 438.2 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.237e-05/0.3017, allocations: 44.39 kB / 438.2 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.679e-05/0.3018, allocations: 82.56 kB / 438.3 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.3019, allocations: 179.3 kB / 438.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.3019, allocations: 0 / 438.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.3019, allocations: 0 / 438.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.302, allocations: 0 / 438.5 MB, free: 37.65 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.0009316/0.3029, allocations: 0.5791 MB / 439.1 MB, free: 37.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.3029, allocations: 12.34 kB / 439.1 MB, free: 37.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.508e-05/0.303, allocations: 23.84 kB / 439.1 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003778/0.3034, allocations: 280.4 kB / 439.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.3034, allocations: 9.812 kB / 439.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.073e-05/0.3034, allocations: 19.25 kB / 439.4 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002997/0.3037, allocations: 176.3 kB / 439.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.3038, allocations: 0 / 439.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.009e-05/0.3038, allocations: 6.562 kB / 439.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.3038, allocations: 7.281 kB / 439.6 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002698/0.3041, allocations: 131.5 kB / 439.7 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007494/0.3048, allocations: 0.5318 MB / 440.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004493/0.3053, allocations: 180.2 kB / 440.4 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001551/0.3055, allocations: 92.84 kB / 440.5 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.113e-05/0.3055, allocations: 0 / 440.5 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002484/0.3057, allocations: 200.3 kB / 440.7 MB, free: 36.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.3058, allocations: 0 / 440.7 MB, free: 36.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.00142/0.3072, allocations: 0.6183 MB / 441.3 MB, free: 35.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.3072, allocations: 169.2 kB / 441.5 MB, free: 35.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002777/0.3075, allocations: 213 kB / 441.7 MB, free: 35.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.3076, allocations: 29.7 kB / 441.7 MB, free: 35.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.847e-05/0.3076, allocations: 124 kB / 441.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.064e-05/0.3077, allocations: 48.19 kB / 441.9 MB, free: 35.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.659e-05/0.3077, allocations: 36.59 kB / 441.9 MB, free: 35.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.551e-05/0.3078, allocations: 334.7 kB / 442.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.3079, allocations: 74.81 kB / 442.3 MB, free: 34.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.3081, allocations: 91.17 kB / 442.4 MB, free: 34.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.3092, allocations: 0.52 MB / 442.9 MB, free: 34.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3092, allocations: 0 / 442.9 MB, free: 34.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003936/0.3096, allocations: 290.9 kB / 443.2 MB, free: 34.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.837e-05/0.3097, allocations: 57.09 kB / 443.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.3097, allocations: 0 / 443.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.3097, allocations: 2.875 kB / 443.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.3099, allocations: 27 kB / 443.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.3099, allocations: 3.062 kB / 443.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000196/0.3101, allocations: 28.58 kB / 443.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.3101, allocations: 2.969 kB / 443.3 MB, free: 34.36 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: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002115/0.3103, allocations: 168.9 kB / 443.5 MB, free: 34.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001061/0.3105, allocations: 76.12 kB / 443.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008779/0.3113, allocations: 0.4901 MB / 444.1 MB, free: 33.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.373e-06/0.3114, allocations: 3.938 kB / 444.1 MB, free: 33.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003006/0.3117, allocations: 250.2 kB / 444.3 MB, free: 33.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.3117, allocations: 56.78 kB / 444.4 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-06/0.3117, allocations: 7.984 kB / 444.4 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.856e-06/0.3117, allocations: 2.594 kB / 444.4 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/0.3118, allocations: 29.27 kB / 444.4 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.454e-06/0.3119, allocations: 2.625 kB / 444.4 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001708/0.312, allocations: 32.08 kB / 444.4 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.312, allocations: 3.469 kB / 444.4 MB, free: 33.66 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.0001025/0.3122, allocations: 240 kB / 444.7 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.2e-05/0.3122, allocations: 23.16 kB / 444.7 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.043e-05/0.3123, allocations: 23.48 kB / 444.7 MB, free: 33.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.3123, allocations: 3.125 kB / 444.7 MB, free: 33.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3123, allocations: 0 / 444.7 MB, free: 33.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3123, allocations: 0 / 444.7 MB, free: 33.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001996/0.3125, allocations: 279.5 kB / 445 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3125, allocations: 0 / 445 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/0.3126, allocations: 13.59 kB / 445 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003214/0.3129, allocations: 144.2 kB / 445.2 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.147e-05/0.313, allocations: 9.359 kB / 445.2 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006963/0.3137, allocations: 0.801 MB / 446 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3137, allocations: 4 kB / 446 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007922/0.3145, allocations: 0.4993 MB / 446.5 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.865e-05/0.3145, allocations: 102.2 kB / 446.6 MB, free: 32.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.905e-05/0.3146, allocations: 5.812 kB / 446.6 MB, free: 32.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.3148, allocations: 25.12 kB / 446.6 MB, free: 32.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.314e-05/0.3149, allocations: 9.844 kB / 446.6 MB, free: 32.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.3149, allocations: 9.969 kB / 446.6 MB, free: 32.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002423/0.3151, allocations: 162.5 kB / 446.8 MB, free: 32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3151, allocations: 0 / 446.8 MB, free: 32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002916/0.3154, allocations: 63.5 kB / 446.8 MB, free: 31.99 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 9.828e-05/0.3155, allocations: 104.6 kB / 446.9 MB, free: 31.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005399/0.3161, allocations: 488.4 kB / 447.4 MB, free: 31.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3161, allocations: 0 / 447.4 MB, free: 31.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003604/0.3165, allocations: 211.9 kB / 447.6 MB, free: 31.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002578/0.3167, allocations: 41.62 kB / 447.7 MB, free: 31.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000679/0.3174, allocations: 462.8 kB / 448.1 MB, free: 31.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001468/0.3176, allocations: 0.734 MB / 448.9 MB, free: 30.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001117/0.3177, allocations: 37.48 kB / 448.9 MB, free: 30.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.469e-05/0.3177, allocations: 18.34 kB / 448.9 MB, free: 30.43 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3177, allocations: 3.938 kB / 448.9 MB, free: 30.43 MB / 350.1 MB Notification: Performance of Templates: time 0.004752/0.3225, allocations: 2.462 MB / 451.4 MB, free: 30.21 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)