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.005203/0.005203, allocations: 101.6 kB / 15.88 MB, free: 5.863 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.001267/0.001267, allocations: 189.9 kB / 16.79 MB, free: 5.805 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.326/1.326, allocations: 222.9 MB / 240.5 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.197/0.197, allocations: 22.35 MB / 313 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 63.89 kB / 380.7 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2618, allocations: 54.94 MB / 435.7 MB, free: 39.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.002685/0.2646, allocations: 1.874 MB / 437.6 MB, free: 38.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009475/0.2655, allocations: 0.6512 MB / 438.2 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.2657, allocations: 6.438 kB / 438.2 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003409/0.266, allocations: 16.36 kB / 438.2 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001523/0.2662, allocations: 37.09 kB / 438.3 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003184/0.2665, allocations: 122 kB / 438.4 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002602/0.2668, allocations: 206.2 kB / 438.6 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.2669, allocations: 52.62 kB / 438.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.2671, allocations: 70.81 kB / 438.7 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.2672, allocations: 92.7 kB / 438.8 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.053e-05/0.2673, allocations: 10.69 kB / 438.8 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.125e-05/0.2673, allocations: 8.531 kB / 438.8 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.647e-05/0.2674, allocations: 44.38 kB / 438.9 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.653e-05/0.2675, allocations: 90.23 kB / 439 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.2677, allocations: 136.1 kB / 439.1 MB, free: 37.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2677, allocations: 0 / 439.1 MB, free: 37.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2677, allocations: 0 / 439.1 MB, free: 37.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.2677, allocations: 0 / 439.1 MB, free: 37.49 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.00106/0.2688, allocations: 0.5813 MB / 439.7 MB, free: 36.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.2688, allocations: 14.62 kB / 439.7 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.657e-05/0.2689, allocations: 21.72 kB / 439.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004148/0.2693, allocations: 270.3 kB / 440 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.2693, allocations: 15.81 kB / 440 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.527e-05/0.2694, allocations: 21.97 kB / 440 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/0.2697, allocations: 183.1 kB / 440.2 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.2697, allocations: 0 / 440.2 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.066e-05/0.2697, allocations: 11.38 kB / 440.2 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.2698, allocations: 2.562 kB / 440.2 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002745/0.27, allocations: 126.8 kB / 440.3 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007921/0.2708, allocations: 0.5364 MB / 440.9 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004683/0.2713, allocations: 179.2 kB / 441 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001574/0.2715, allocations: 90.16 kB / 441.1 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.082e-05/0.2715, allocations: 0 / 441.1 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002579/0.2718, allocations: 193.8 kB / 441.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.272e-06/0.2718, allocations: 0 / 441.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001543/0.2733, allocations: 0.6269 MB / 441.9 MB, free: 35.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.2734, allocations: 157 kB / 442.1 MB, free: 35.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000309/0.2737, allocations: 214.4 kB / 442.3 MB, free: 35.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.091e-05/0.2738, allocations: 28.44 kB / 442.3 MB, free: 35.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.602e-05/0.2738, allocations: 130.8 kB / 442.5 MB, free: 35.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.745e-05/0.2739, allocations: 50.58 kB / 442.5 MB, free: 35.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.446e-05/0.2739, allocations: 38.7 kB / 442.5 MB, free: 35.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.608e-05/0.274, allocations: 333.4 kB / 442.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.2742, allocations: 69 kB / 442.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.2743, allocations: 91 kB / 443 MB, free: 34.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001127/0.2755, allocations: 0.5299 MB / 443.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.2755, allocations: 0 / 443.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003809/0.2759, allocations: 275.5 kB / 443.8 MB, free: 34.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.363e-05/0.2759, allocations: 60.38 kB / 443.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2759, allocations: 0 / 443.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.2759, allocations: 2.75 kB / 443.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001805/0.2761, allocations: 40.06 kB / 443.9 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.2761, allocations: 0 / 443.9 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000194/0.2763, allocations: 27.08 kB / 444 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.2764, allocations: 6.938 kB / 444 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: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002031/0.2766, allocations: 159.8 kB / 444.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001086/0.2767, allocations: 73.81 kB / 444.2 MB, free: 34.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009093/0.2776, allocations: 0.5012 MB / 444.7 MB, free: 33.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.974e-06/0.2776, allocations: 6.75 kB / 444.7 MB, free: 33.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0002995/0.2779, allocations: 243.5 kB / 444.9 MB, free: 33.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.278, allocations: 63.52 kB / 445 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-06/0.278, allocations: 0 / 445 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-06/0.278, allocations: 0 / 445 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.2781, allocations: 31.44 kB / 445 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.537e-06/0.2781, allocations: 4 kB / 445 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001792/0.2783, allocations: 31.45 kB / 445.1 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.2783, allocations: 13.09 kB / 445.1 MB, free: 33.49 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.0001126/0.2785, allocations: 226 kB / 445.3 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.249e-05/0.2785, allocations: 19.19 kB / 445.3 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.549e-05/0.2786, allocations: 23.84 kB / 445.3 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2786, allocations: 2.844 kB / 445.3 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.2786, allocations: 4 kB / 445.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2786, allocations: 0 / 445.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002052/0.2788, allocations: 273.9 kB / 445.6 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.2788, allocations: 0 / 445.6 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.2789, allocations: 17.77 kB / 445.6 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003359/0.2793, allocations: 145.9 kB / 445.8 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.176e-05/0.2793, allocations: 10.94 kB / 445.8 MB, free: 32.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007184/0.28, allocations: 0.7896 MB / 446.6 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.28, allocations: 7.875 kB / 446.6 MB, free: 32.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007917/0.2808, allocations: 0.4933 MB / 447.1 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.25e-05/0.2809, allocations: 98.31 kB / 447.2 MB, free: 31.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.059e-05/0.2809, allocations: 13.81 kB / 447.2 MB, free: 31.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.2812, allocations: 22.59 kB / 447.2 MB, free: 31.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.19e-05/0.2812, allocations: 17.06 kB / 447.2 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.2813, allocations: 5.688 kB / 447.2 MB, free: 31.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002443/0.2815, allocations: 161.5 kB / 447.4 MB, free: 31.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2815, allocations: 3.938 kB / 447.4 MB, free: 31.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003075/0.2818, allocations: 71.06 kB / 447.5 MB, free: 31.84 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.0001096/0.282, allocations: 107.2 kB / 447.6 MB, free: 31.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005366/0.2825, allocations: 481.2 kB / 448 MB, free: 31.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2825, allocations: 0 / 448 MB, free: 31.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003744/0.2829, allocations: 225.3 kB / 448.3 MB, free: 31.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.2832, allocations: 32.62 kB / 448.3 MB, free: 31.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007164/0.2839, allocations: 0.494 MB / 448.8 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001413/0.2841, allocations: 0.7345 MB / 449.5 MB, free: 30.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.323e-05/0.2841, allocations: 16.92 kB / 449.5 MB, free: 30.23 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2841, allocations: 0 / 449.5 MB, free: 30.23 MB / 350.1 MB Notification: Performance of Templates: time 0.003433/0.2876, allocations: 2.484 MB / 452 MB, free: 30.04 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)