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.001603/0.001603, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001971/0.001971, allocations: 199.5 kB / 16.26 MB, free: 6.621 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.362/1.362, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2023/0.2023, allocations: 22.35 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 67.91 kB / 380.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2733, allocations: 54.95 MB / 435.2 MB, free: 39.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.00243/0.2758, allocations: 1.873 MB / 437.1 MB, free: 38.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008503/0.2766, allocations: 0.6421 MB / 437.8 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.494e-05/0.2767, allocations: 6.594 kB / 437.8 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002411/0.277, allocations: 24.19 kB / 437.8 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001269/0.2771, allocations: 37.28 kB / 437.8 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002411/0.2774, allocations: 105 kB / 437.9 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002298/0.2776, allocations: 231.5 kB / 438.2 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.2777, allocations: 50.48 kB / 438.2 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.968e-05/0.2778, allocations: 92.66 kB / 438.3 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.278, allocations: 99.02 kB / 438.4 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.46e-05/0.278, allocations: 19.62 kB / 438.4 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.59e-05/0.2781, allocations: 17.88 kB / 438.4 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.303e-05/0.2781, allocations: 53.33 kB / 438.5 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.183e-05/0.2782, allocations: 79.28 kB / 438.6 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001617/0.2784, allocations: 192 kB / 438.7 MB, free: 37.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2784, allocations: 0 / 438.7 MB, free: 37.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2784, allocations: 0 / 438.7 MB, free: 37.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.2784, allocations: 7.938 kB / 438.7 MB, free: 37.35 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.0009127/0.2793, allocations: 0.5776 MB / 439.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.907e-05/0.2794, allocations: 15.56 kB / 439.3 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.195e-05/0.2794, allocations: 28.31 kB / 439.4 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003732/0.2798, allocations: 270 kB / 439.6 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.2798, allocations: 10.19 kB / 439.6 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.36e-05/0.2799, allocations: 19.97 kB / 439.7 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003041/0.2802, allocations: 179.6 kB / 439.8 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.2802, allocations: 0 / 439.8 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.949e-05/0.2802, allocations: 10.78 kB / 439.8 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.2802, allocations: 2.844 kB / 439.9 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002734/0.2805, allocations: 131.5 kB / 440 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007462/0.2813, allocations: 0.5361 MB / 440.5 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004551/0.2817, allocations: 180.1 kB / 440.7 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001511/0.2819, allocations: 88.14 kB / 440.8 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.183e-05/0.2819, allocations: 2.969 kB / 440.8 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002435/0.2822, allocations: 191.6 kB / 441 MB, free: 35.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.2822, allocations: 0 / 441 MB, free: 35.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001477/0.2837, allocations: 0.6245 MB / 441.6 MB, free: 35.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/0.2837, allocations: 160.1 kB / 441.7 MB, free: 35.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002909/0.284, allocations: 219.3 kB / 442 MB, free: 35.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.2841, allocations: 32.42 kB / 442 MB, free: 35.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.38e-05/0.2841, allocations: 126.2 kB / 442.1 MB, free: 35.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.085e-05/0.2841, allocations: 46.53 kB / 442.2 MB, free: 35.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.764e-05/0.2842, allocations: 37.28 kB / 442.2 MB, free: 35.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.68e-05/0.2843, allocations: 334.8 kB / 442.5 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/0.2844, allocations: 66.91 kB / 442.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001382/0.2846, allocations: 94.52 kB / 442.7 MB, free: 34.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.2856, allocations: 0.5293 MB / 443.2 MB, free: 34.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2856, allocations: 0 / 443.2 MB, free: 34.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003756/0.286, allocations: 275.3 kB / 443.5 MB, free: 34.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.096e-05/0.2861, allocations: 63.25 kB / 443.5 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.2861, allocations: 0 / 443.5 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.2861, allocations: 0 / 443.5 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001777/0.2863, allocations: 39.97 kB / 443.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.81e-06/0.2863, allocations: 0 / 443.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001926/0.2865, allocations: 32.16 kB / 443.6 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.2865, allocations: 9.125 kB / 443.6 MB, free: 34.05 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.0001914/0.2867, allocations: 160 kB / 443.8 MB, free: 33.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001046/0.2868, allocations: 77.91 kB / 443.9 MB, free: 33.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008774/0.2877, allocations: 0.4957 MB / 444.4 MB, free: 33.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.583e-06/0.2877, allocations: 7.938 kB / 444.4 MB, free: 33.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0002839/0.288, allocations: 244.4 kB / 444.6 MB, free: 33.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.288, allocations: 59.91 kB / 444.7 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-06/0.2881, allocations: 0 / 444.7 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-06/0.2881, allocations: 0 / 444.7 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.2882, allocations: 34.34 kB / 444.7 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.434e-06/0.2882, allocations: 2.938 kB / 444.7 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/0.2884, allocations: 27.83 kB / 444.7 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.2884, allocations: 14.34 kB / 444.7 MB, free: 33.35 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 9.475e-05/0.2885, allocations: 226 kB / 445 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.119e-05/0.2886, allocations: 16.19 kB / 445 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.179e-05/0.2886, allocations: 24.56 kB / 445 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.2886, allocations: 0 / 445 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2886, allocations: 0 / 445 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.2886, allocations: 3.234 kB / 445 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001853/0.2888, allocations: 273.5 kB / 445.3 MB, free: 32.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2888, allocations: 0 / 445.3 MB, free: 32.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.289, allocations: 19.78 kB / 445.3 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003182/0.2893, allocations: 146.1 kB / 445.4 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.187e-05/0.2893, allocations: 6.812 kB / 445.4 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006947/0.29, allocations: 0.7995 MB / 446.2 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.29, allocations: 3.938 kB / 446.2 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007974/0.2908, allocations: 0.4987 MB / 446.7 MB, free: 31.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.774e-05/0.2909, allocations: 97.25 kB / 446.8 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.272e-05/0.2909, allocations: 9.125 kB / 446.8 MB, free: 31.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002198/0.2912, allocations: 30.89 kB / 446.9 MB, free: 31.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.201e-05/0.2912, allocations: 14.16 kB / 446.9 MB, free: 31.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.2913, allocations: 5.844 kB / 446.9 MB, free: 31.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002386/0.2915, allocations: 159.4 kB / 447 MB, free: 31.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2915, allocations: 0 / 447 MB, free: 31.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003047/0.2918, allocations: 66.62 kB / 447.1 MB, free: 31.7 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.751e-05/0.2919, allocations: 110.3 kB / 447.2 MB, free: 31.6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000567/0.2925, allocations: 482.5 kB / 447.7 MB, free: 31.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2925, allocations: 0 / 447.7 MB, free: 31.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003778/0.2929, allocations: 221.6 kB / 447.9 MB, free: 31.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002665/0.2932, allocations: 37.17 kB / 447.9 MB, free: 31.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000687/0.2939, allocations: 474.6 kB / 448.4 MB, free: 30.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001319/0.294, allocations: 0.7425 MB / 449.1 MB, free: 30.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001201/0.2941, allocations: 41.22 kB / 449.2 MB, free: 30.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.429e-05/0.2942, allocations: 14.28 kB / 449.2 MB, free: 30.12 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2942, allocations: 0 / 449.2 MB, free: 30.12 MB / 350.1 MB Notification: Performance of Templates: time 0.00485/0.2991, allocations: 2.604 MB / 451.8 MB, free: 29.91 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)