Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec") translateModel(AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1045/0.1045, allocations: 17.68 MB / 33.63 MB, free: 1.746 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001369/0.001369, allocations: 178 kB / 38.91 MB, free: 16 kB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.632/1.632, allocations: 205.4 MB / 249.5 MB, free: 2.441 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008232/0.0008232, allocations: 101.4 kB / 302.2 MB, free: 4.43 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005107/0.0005112, allocations: 8 kB / 366.9 MB, free: 3.633 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.316, allocations: 51.98 MB / 418.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1165/0.4326, allocations: 78.92 MB / 497.8 MB, free: 9.363 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/0.4329, allocations: 71.97 kB / 497.9 MB, free: 9.293 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01568/0.4486, allocations: 4.881 MB / 0.491 GB, free: 4.406 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.608e-06/0.4487, allocations: 7.938 kB / 0.491 GB, free: 4.398 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.855e-05/0.4488, allocations: 11.94 kB / 0.491 GB, free: 4.387 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001468/0.4502, allocations: 0.619 MB / 0.4916 GB, free: 3.715 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.4503, allocations: 8.031 kB / 0.4916 GB, free: 3.707 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001271/0.4504, allocations: 32.56 kB / 0.4917 GB, free: 3.676 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008656/0.4513, allocations: 395.2 kB / 0.4921 GB, free: 3.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/0.4514, allocations: 16.31 kB / 0.4921 GB, free: 3.234 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.462e-05/0.4514, allocations: 20.28 kB / 0.4921 GB, free: 3.215 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000384/0.4518, allocations: 215 kB / 0.4923 GB, free: 2.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.4519, allocations: 192 / 0.4923 GB, free: 2.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.253e-05/0.4519, allocations: 11.94 kB / 0.4923 GB, free: 2.969 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.4519, allocations: 4 kB / 0.4923 GB, free: 2.965 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003454/0.4522, allocations: 144.8 kB / 0.4924 GB, free: 2.824 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001335/0.4536, allocations: 0.9515 MB / 0.4934 GB, free: 1.809 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005797/0.4542, allocations: 242.6 kB / 0.4936 GB, free: 1.562 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001426/0.4543, allocations: 72.83 kB / 0.4937 GB, free: 1.488 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.4544, allocations: 4 kB / 0.4937 GB, free: 1.484 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.27e-05/0.4544, allocations: 42.55 kB / 0.4937 GB, free: 1.434 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.763e-06/0.4544, allocations: 0 / 0.4937 GB, free: 1.434 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.0005583/0.455, allocations: 254.2 kB / 0.494 GB, free: 1.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.455, allocations: 55.41 kB / 0.494 GB, free: 1.113 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007533/0.4558, allocations: 380.4 kB / 0.4944 GB, free: 0.7305 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.4558, allocations: 29.69 kB / 0.4944 GB, free: 0.6953 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.456, allocations: 176.2 kB / 0.4946 GB, free: 0.5195 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.726e-05/0.4561, allocations: 67 kB / 0.4946 GB, free: 464 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.849e-06/0.4561, allocations: 4 kB / 0.4946 GB, free: 460 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002072/0.4563, allocations: 338.8 kB / 0.495 GB, free: 112 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001434/0.4565, allocations: 64.2 kB / 0.495 GB, free: 44 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2675/0.724, allocations: 103.3 kB / 0.4951 GB, free: 81.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/0.7255, allocations: 377.2 kB / 0.4955 GB, free: 81.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.7255, allocations: 1.062 kB / 0.4955 GB, free: 81.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000571/0.7261, allocations: 250.9 kB / 0.4957 GB, free: 81.85 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.7261, allocations: 5.953 kB / 0.4957 GB, free: 81.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.7261, allocations: 1.594 kB / 0.4957 GB, free: 81.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.7262, allocations: 2.188 kB / 0.4957 GB, free: 81.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002212/0.7264, allocations: 43.12 kB / 0.4958 GB, free: 81.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.7264, allocations: 6.047 kB / 0.4958 GB, free: 81.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003064/0.7267, allocations: 51.44 kB / 0.4958 GB, free: 81.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.387e-05/0.7268, allocations: 9.219 kB / 0.4958 GB, free: 81.85 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: g1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] g2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (Cs.local_reset,N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002284/0.727, allocations: 146.9 kB / 0.496 GB, free: 81.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.553e-05/0.727, allocations: 25.5 kB / 0.496 GB, free: 81.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.384e-05/0.7271, allocations: 40.48 kB / 0.496 GB, free: 81.72 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.7271, allocations: 6.094 kB / 0.496 GB, free: 81.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.7272, allocations: 1.219 kB / 0.4961 GB, free: 81.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.7272, allocations: 1.266 kB / 0.4961 GB, free: 81.72 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004031/0.7276, allocations: 321 kB / 0.4964 GB, free: 81.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.7276, allocations: 0 / 0.4964 GB, free: 81.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001891/0.7278, allocations: 36.05 kB / 0.4964 GB, free: 81.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.7278, allocations: 0.875 kB / 0.4964 GB, free: 81.54 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.894e-05/0.7278, allocations: 6.688 kB / 0.4964 GB, free: 81.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.716e-06/0.7278, allocations: 2.781 kB / 0.4964 GB, free: 81.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.7278, allocations: 1.094 kB / 0.4964 GB, free: 81.53 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005511/0.7284, allocations: 392.8 kB / 0.4968 GB, free: 81.4 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.847e-05/0.7285, allocations: 108.6 kB / 0.4969 GB, free: 81.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.455e-05/0.7285, allocations: 11.45 kB / 0.4969 GB, free: 81.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002787/0.7288, allocations: 39.36 kB / 0.4969 GB, free: 81.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.659e-05/0.7289, allocations: 9.812 kB / 0.4969 GB, free: 81.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.257e-05/0.7289, allocations: 6.828 kB / 0.4969 GB, free: 81.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005966/0.7295, allocations: 286.1 kB / 0.4972 GB, free: 81.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7295, allocations: 0 / 0.4972 GB, free: 81.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003091/0.7298, allocations: 49.12 kB / 0.4973 GB, free: 81.21 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (N.y,g1.x_scaled[1],g2.x_scaled[1],Cs.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001355/0.7299, allocations: 115.1 kB / 0.4974 GB, free: 81.12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003462/0.7303, allocations: 168.5 kB / 0.4975 GB, free: 81.12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.7303, allocations: 1.375 kB / 0.4975 GB, free: 81.12 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001455/0.7305, allocations: 83.08 kB / 0.4976 GB, free: 81.12 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004197/0.7309, allocations: 50.38 kB / 0.4977 GB, free: 81.11 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.732, allocations: 0.6046 MB / 0.4983 GB, free: 80.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.7324, allocations: 0.7804 MB / 0.499 GB, free: 80.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001443/0.7326, allocations: 38.44 kB / 0.4991 GB, free: 80.09 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.351e-05/0.7326, allocations: 22.03 kB / 0.4991 GB, free: 80.08 MB / 362.7 MB Notification: Performance of SimCode: time 2.11e-07/0.7327, allocations: 1.625 kB / 0.4991 GB, free: 80.08 MB / 362.7 MB Notification: Performance of Templates: time 0.00605/0.7387, allocations: 1.933 MB / 0.501 GB, free: 79.94 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec.makefile (rm -f AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec.pipe ; mkfifo AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec.pipe >> ../files/AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec.sim & ./AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_two_generators_PriSec.pipe 2>&1)