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.0009128/0.0009128, allocations: 92.16 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001082/0.001081, allocations: 182.6 kB / 16.92 MB, free: 6.926 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.344/1.344, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1925/0.1925, allocations: 22.34 MB / 314.4 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003385/0.0003387, allocations: 15.92 kB / 383.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2636, allocations: 55.97 MB / 439.2 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.001502/0.2652, allocations: 1.525 MB / 440.8 MB, free: 38.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008057/0.266, allocations: 0.6479 MB / 441.4 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.708e-05/0.2661, allocations: 2.656 kB / 441.4 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002201/0.2663, allocations: 20.14 kB / 441.4 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.2664, allocations: 32.27 kB / 441.5 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002467/0.2667, allocations: 116.8 kB / 441.6 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001811/0.2669, allocations: 199.6 kB / 441.8 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.267, allocations: 57.22 kB / 441.8 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.72e-05/0.2671, allocations: 66.45 kB / 441.9 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.2672, allocations: 85.84 kB / 442 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.772e-05/0.2673, allocations: 5.875 kB / 442 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.977e-05/0.2673, allocations: 6.406 kB / 442 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.513e-05/0.2674, allocations: 39.06 kB / 442 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.481e-05/0.2675, allocations: 102 kB / 442.1 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001188/0.2676, allocations: 130.3 kB / 442.2 MB, free: 37.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.2676, allocations: 3.938 kB / 442.3 MB, free: 37.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2676, allocations: 3.094 kB / 442.3 MB, free: 37.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.2676, allocations: 3.938 kB / 442.3 MB, free: 37.72 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.0008428/0.2684, allocations: 0.5548 MB / 442.8 MB, free: 37.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.038e-05/0.2685, allocations: 19.38 kB / 442.8 MB, free: 37.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.105e-05/0.2685, allocations: 20.31 kB / 442.9 MB, free: 37.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003758/0.2689, allocations: 276.8 kB / 443.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.269, allocations: 9.656 kB / 443.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.119e-05/0.269, allocations: 14.81 kB / 443.1 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.2693, allocations: 190.1 kB / 443.3 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.2693, allocations: 0 / 443.3 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.107e-05/0.2693, allocations: 9.516 kB / 443.3 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.2694, allocations: 2.781 kB / 443.3 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002872/0.2696, allocations: 136 kB / 443.5 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007682/0.2704, allocations: 0.5496 MB / 444 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004507/0.2709, allocations: 187.2 kB / 444.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001564/0.2711, allocations: 92.66 kB / 444.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.2711, allocations: 2.922 kB / 444.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002412/0.2713, allocations: 204.6 kB / 444.5 MB, free: 36.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.2713, allocations: 0 / 444.5 MB, free: 36.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001505/0.2729, allocations: 0.6709 MB / 445.2 MB, free: 35.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.405e-05/0.2729, allocations: 171.3 kB / 445.3 MB, free: 35.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00029/0.2732, allocations: 218.8 kB / 445.6 MB, free: 35.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.2732, allocations: 25.7 kB / 445.6 MB, free: 35.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.322e-05/0.2733, allocations: 116.8 kB / 445.7 MB, free: 35.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.189e-05/0.2733, allocations: 56.06 kB / 445.7 MB, free: 35.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-05/0.2734, allocations: 25.5 kB / 445.8 MB, free: 35.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.532e-05/0.2734, allocations: 328.6 kB / 446.1 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.2736, allocations: 72.02 kB / 446.2 MB, free: 35.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.2737, allocations: 89.91 kB / 446.3 MB, free: 34.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001223/0.2749, allocations: 0.5382 MB / 446.8 MB, free: 34.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.275, allocations: 0 / 446.8 MB, free: 34.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004997/0.2755, allocations: 285.4 kB / 447.1 MB, free: 34.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.921e-05/0.2755, allocations: 154.7 kB / 447.2 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.2755, allocations: 0 / 447.2 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.2756, allocations: 0 / 447.2 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.2757, allocations: 40.69 kB / 447.3 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.2758, allocations: 0 / 447.3 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001949/0.276, allocations: 43.8 kB / 447.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.276, allocations: 13.52 kB / 447.3 MB, free: 34.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.01e-06/0.276, allocations: 3 kB / 447.3 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002775/0.2763, allocations: 226.9 kB / 447.5 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-06/0.2763, allocations: 3.281 kB / 447.5 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-06/0.2763, allocations: 0 / 447.5 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.2764, allocations: 23.12 kB / 447.6 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.645e-06/0.2764, allocations: 2.812 kB / 447.6 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.2766, allocations: 34.59 kB / 447.6 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.2766, allocations: 6.062 kB / 447.6 MB, free: 34.19 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.0001504/0.2768, allocations: 256.9 kB / 447.9 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.925e-05/0.2768, allocations: 16.59 kB / 447.9 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.835e-05/0.2769, allocations: 20.12 kB / 447.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-06/0.2769, allocations: 6.078 kB / 447.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2769, allocations: 0 / 447.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2769, allocations: 4 kB / 447.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001743/0.2771, allocations: 276.5 kB / 448.2 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2771, allocations: 2.969 kB / 448.2 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.2772, allocations: 12.12 kB / 448.2 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003385/0.2776, allocations: 156.7 kB / 448.3 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.2776, allocations: 6.609 kB / 448.3 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007479/0.2783, allocations: 0.8362 MB / 449.2 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2784, allocations: 0 / 449.2 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008491/0.2792, allocations: 0.5235 MB / 449.7 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.556e-05/0.2793, allocations: 98.19 kB / 449.8 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.628e-05/0.2793, allocations: 10.91 kB / 449.8 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/0.2795, allocations: 31.86 kB / 449.8 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/0.2796, allocations: 9.188 kB / 449.9 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.2796, allocations: 6.938 kB / 449.9 MB, free: 32.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002444/0.2799, allocations: 163 kB / 450 MB, free: 32.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2799, allocations: 5.312 kB / 450 MB, free: 32.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002998/0.2802, allocations: 70.84 kB / 450.1 MB, free: 32.5 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 8.893e-05/0.2803, allocations: 102.8 kB / 450.2 MB, free: 32.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00054/0.2808, allocations: 479.5 kB / 450.7 MB, free: 32.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2808, allocations: 6.781 kB / 450.7 MB, free: 32.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000423/0.2813, allocations: 238.4 kB / 450.9 MB, free: 31.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.2815, allocations: 32.16 kB / 450.9 MB, free: 31.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006743/0.2822, allocations: 0.5143 MB / 451.4 MB, free: 31.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001271/0.2823, allocations: 0.7322 MB / 452.2 MB, free: 30.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.155e-05/0.2824, allocations: 16.53 kB / 452.2 MB, free: 30.91 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2824, allocations: 2.938 kB / 452.2 MB, free: 30.91 MB / 350.1 MB Notification: Performance of Templates: time 0.00345/0.2859, allocations: 2.469 MB / 454.7 MB, free: 30.74 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)