Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.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.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009924/0.0009923, allocations: 91.77 kB / 16.02 MB, free: 80 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.001125/0.001125, allocations: 178.9 kB / 16.92 MB, free: 6.652 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.319/1.319, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.199/0.199, allocations: 22.35 MB / 314.4 MB, free: 13.04 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003192/0.0003189, allocations: 11.94 kB / 383.3 MB, free: 10.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2472, allocations: 55.98 MB / 439.2 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001072/0.2483, allocations: 0.7199 MB / 440 MB, free: 38.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.2495, allocations: 1.212 MB / 441.2 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.424e-05/0.2496, allocations: 3.031 kB / 441.2 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002567/0.2499, allocations: 30.17 kB / 441.2 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001272/0.25, allocations: 41.38 kB / 441.2 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001461/0.2502, allocations: 75.53 kB / 441.3 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001967/0.2504, allocations: 211.4 kB / 441.5 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.461e-05/0.2505, allocations: 30.12 kB / 441.5 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.932e-05/0.2506, allocations: 72 kB / 441.6 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001277/0.2507, allocations: 81.14 kB / 441.7 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.05e-05/0.2507, allocations: 2.969 kB / 441.7 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.85e-05/0.2508, allocations: 5.75 kB / 441.7 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.597e-05/0.2508, allocations: 37.72 kB / 441.7 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.243e-05/0.2509, allocations: 82.36 kB / 441.8 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.919e-05/0.251, allocations: 86.28 kB / 441.9 MB, free: 37.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.251, allocations: 4 kB / 441.9 MB, free: 37.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.251, allocations: 6.875 kB / 441.9 MB, free: 37.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.409e-06/0.251, allocations: 0 / 441.9 MB, free: 37.64 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0008702/0.2519, allocations: 498.7 kB / 442.4 MB, free: 37.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.2519, allocations: 9.875 kB / 442.4 MB, free: 37.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.042e-05/0.252, allocations: 16.03 kB / 442.4 MB, free: 37.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000463/0.2524, allocations: 298.8 kB / 442.7 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.2525, allocations: 7.094 kB / 442.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.534e-05/0.2525, allocations: 7.594 kB / 442.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000188/0.2527, allocations: 121.6 kB / 442.9 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.2527, allocations: 0 / 442.9 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.2527, allocations: 10.38 kB / 442.9 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.2527, allocations: 2.344 kB / 442.9 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001708/0.2529, allocations: 84.34 kB / 443 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005969/0.2535, allocations: 0.5933 MB / 443.5 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000323/0.2538, allocations: 134.2 kB / 443.7 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.386e-05/0.2539, allocations: 52.39 kB / 443.7 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.254, allocations: 0 / 443.7 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.23e-05/0.254, allocations: 34.75 kB / 443.8 MB, free: 36.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.254, allocations: 0 / 443.8 MB, free: 36.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003203/0.2543, allocations: 165 kB / 443.9 MB, free: 36.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.327e-05/0.2543, allocations: 55.34 kB / 444 MB, free: 36.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004029/0.2548, allocations: 260.7 kB / 444.2 MB, free: 35.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.227e-05/0.2548, allocations: 33.64 kB / 444.3 MB, free: 35.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.99e-05/0.2548, allocations: 115.7 kB / 444.4 MB, free: 35.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/0.2549, allocations: 41.06 kB / 444.4 MB, free: 35.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.692e-05/0.2549, allocations: 22.55 kB / 444.4 MB, free: 35.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.822e-05/0.2549, allocations: 323.4 kB / 444.8 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.538e-05/0.255, allocations: 38 kB / 444.8 MB, free: 35.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.892e-05/0.2551, allocations: 67.58 kB / 444.9 MB, free: 35.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007081/0.2558, allocations: 252.1 kB / 445.1 MB, free: 35.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.2558, allocations: 0 / 445.1 MB, free: 35.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.00023/0.2561, allocations: 167.1 kB / 445.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.2561, allocations: 5.75 kB / 445.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.2561, allocations: 0 / 445.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.2561, allocations: 0 / 445.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.2562, allocations: 21.66 kB / 445.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.373e-05/0.2563, allocations: 10.53 kB / 445.3 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001962/0.2565, allocations: 37.72 kB / 445.3 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.736e-06/0.2565, allocations: 3.125 kB / 445.3 MB, free: 35.21 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: g.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cps.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: 3 * Number of states: 0 () * Number of discrete variables: 1 (N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * 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.0001085/0.2566, allocations: 140.4 kB / 445.5 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.512e-05/0.2566, allocations: 16.59 kB / 445.5 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.376e-05/0.2567, allocations: 25.03 kB / 445.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.2567, allocations: 0 / 445.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.2567, allocations: 0 / 445.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.2567, allocations: 3.938 kB / 445.5 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001834/0.2569, allocations: 232.7 kB / 445.8 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.2569, allocations: 0 / 445.8 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.257, allocations: 16.42 kB / 445.8 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.257, allocations: 3.938 kB / 445.8 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.2571, allocations: 7.344 kB / 445.8 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.2571, allocations: 0 / 445.8 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2571, allocations: 4 kB / 445.8 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000301/0.2574, allocations: 285.1 kB / 446.1 MB, free: 34.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.663e-05/0.2574, allocations: 94.86 kB / 446.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.633e-05/0.2575, allocations: 7.562 kB / 446.2 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.2577, allocations: 28.25 kB / 446.2 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.55e-05/0.2577, allocations: 10.56 kB / 446.2 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.2577, allocations: 2.625 kB / 446.2 MB, free: 34.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003372/0.2581, allocations: 204.2 kB / 446.4 MB, free: 34.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2581, allocations: 0 / 446.4 MB, free: 34.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002424/0.2583, allocations: 21.38 kB / 446.4 MB, free: 34.42 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (N.y,Cps.x_scaled[1],g.x_scaled[1]) * 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 (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 7.059e-05/0.2584, allocations: 105.1 kB / 446.5 MB, free: 34.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002051/0.2586, allocations: 102.3 kB / 446.6 MB, free: 34.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2586, allocations: 3.938 kB / 446.6 MB, free: 34.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.664e-05/0.2587, allocations: 52.67 kB / 446.7 MB, free: 34.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.2591, allocations: 29.61 kB / 446.7 MB, free: 34.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005272/0.2596, allocations: 412.9 kB / 447.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001301/0.2597, allocations: 0.726 MB / 447.8 MB, free: 33.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.308e-05/0.2598, allocations: 16.34 kB / 447.9 MB, free: 33.27 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2598, allocations: 3.938 kB / 447.9 MB, free: 33.27 MB / 350.1 MB Notification: Performance of Templates: time 0.002869/0.2627, allocations: 1.867 MB / 449.7 MB, free: 33.14 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.makefile (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1)