Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) 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) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002284/0.002283, allocations: 180.7 kB / 8.011 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.241/2.241, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001078, allocations: 86.36 kB / 261.8 MB, free: 1.672 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.269/0.269, allocations: 37.99 MB / 347.7 MB, free: 5.762 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.068e-05/2.067e-05, allocations: 4 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1061, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5209/0.627, allocations: 116.2 MB / 0.5688 GB, free: 11.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003245/0.6274, allocations: 90.64 kB / 0.5689 GB, free: 11.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1736/0.801, allocations: 37.72 MB / 0.6057 GB, free: 11.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.8011, allocations: 4 kB / 0.6057 GB, free: 11.85 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.945e-05/0.8012, allocations: 28 kB / 0.6058 GB, free: 11.82 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.004459/0.8056, allocations: 1.289 MB / 0.607 GB, free: 10.56 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/0.8057, allocations: 8.031 kB / 0.607 GB, free: 10.55 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002848/0.8086, allocations: 254.1 kB / 0.6073 GB, free: 10.3 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006646/0.8153, allocations: 1.55 MB / 0.6088 GB, free: 9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.87e-05/0.8154, allocations: 36 kB / 0.6088 GB, free: 8.965 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004036/0.8158, allocations: 67.91 kB / 0.6089 GB, free: 8.898 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002892/0.8187, allocations: 1.007 MB / 0.6099 GB, free: 8.227 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003946/0.8227, allocations: 1.304 MB / 0.6111 GB, free: 7.195 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.739e-05/0.8228, allocations: 3.062 kB / 0.6111 GB, free: 7.195 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001395/0.823, allocations: 4 kB / 0.6111 GB, free: 7.191 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002252/0.8232, allocations: 83.92 kB / 0.6112 GB, free: 7.113 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01334/0.8366, allocations: 5.309 MB / 0.6164 GB, free: 2.059 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00166/0.8383, allocations: 0.6601 MB / 0.6171 GB, free: 1.359 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009595/0.8393, allocations: 382.8 kB / 0.6174 GB, free: 0.9844 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.137e-05/0.8394, allocations: 12.55 kB / 0.6174 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.99e-05/0.8394, allocations: 43.12 kB / 0.6175 GB, free: 0.9219 MB / 410.7 MB Notification: Performance of pre-optimization done (n=69): time 5.68e-06/0.8395, allocations: 0 / 0.6175 GB, free: 0.9219 MB / 410.7 MB Notification: Performance of matching and sorting (n=78): time 0.008865/0.8483, allocations: 2.614 MB / 0.62 GB, free: 14.24 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.924e-05/0.8484, allocations: 93.81 kB / 0.6201 GB, free: 14.13 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001125/0.8496, allocations: 0.5389 MB / 0.6206 GB, free: 13.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001662/0.8498, allocations: 29.7 kB / 0.6207 GB, free: 13.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005472/0.8503, allocations: 0.6137 MB / 0.6213 GB, free: 12.93 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004356/0.8508, allocations: 268.1 kB / 0.6215 GB, free: 12.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.825e-05/0.8509, allocations: 4 kB / 0.6215 GB, free: 12.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.851, allocations: 354.8 kB / 0.6219 GB, free: 12.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009647/0.852, allocations: 378.5 kB / 0.6222 GB, free: 11.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/0.8532, allocations: 0.6513 MB / 0.6229 GB, free: 11.15 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.8545, allocations: 0.4962 MB / 0.6234 GB, free: 10.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-05/0.8546, allocations: 4 kB / 0.6234 GB, free: 10.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=131) (initialization): time 0.005686/0.8603, allocations: 1.58 MB / 0.6249 GB, free: 9.055 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/0.8604, allocations: 8 kB / 0.6249 GB, free: 9.047 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004761/0.8651, allocations: 1.265 MB / 0.6261 GB, free: 7.766 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003725/0.8689, allocations: 0.5909 MB / 0.6267 GB, free: 7.164 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/0.8702, allocations: 179.7 kB / 0.6269 GB, free: 6.988 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01795/0.8882, allocations: 9.263 MB / 0.6359 GB, free: 13.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.8895, allocations: 32.02 kB / 0.636 GB, free: 13.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001612/0.8897, allocations: 47.94 kB / 0.636 GB, free: 13.15 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 92 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {3 20} Notification: Performance of prepare postOptimizeDAE: time 0.000298/0.89, allocations: 128.7 kB / 0.6361 GB, free: 13.02 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003516/0.8936, allocations: 1.1 MB / 0.6372 GB, free: 11.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003428/0.8939, allocations: 91.25 kB / 0.6373 GB, free: 11.81 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003837/0.8978, allocations: 1.189 MB / 0.6385 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/0.8978, allocations: 11.94 kB / 0.6385 GB, free: 10.57 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.8979, allocations: 4 kB / 0.6385 GB, free: 10.57 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.841e-05/0.8979, allocations: 11.98 kB / 0.6385 GB, free: 10.56 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007311/0.9052, allocations: 2.255 MB / 0.6407 GB, free: 8.219 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/0.9053, allocations: 0 / 0.6407 GB, free: 8.219 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009932/0.9063, allocations: 111.9 kB / 0.6408 GB, free: 8.109 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002017/0.9083, allocations: 387.9 kB / 0.6412 GB, free: 7.715 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001484/0.9085, allocations: 19.97 kB / 0.6412 GB, free: 7.695 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01149/0.92, allocations: 8.246 MB / 0.6492 GB, free: 14.88 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.92, allocations: 0 / 0.6492 GB, free: 14.88 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004671/0.9247, allocations: 1.757 MB / 0.651 GB, free: 13.02 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007921/0.9256, allocations: 224 kB / 0.6512 GB, free: 12.78 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002194/0.9258, allocations: 15.98 kB / 0.6512 GB, free: 12.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008827/0.9267, allocations: 27.86 kB / 0.6512 GB, free: 12.74 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002233/0.927, allocations: 60.69 kB / 0.6513 GB, free: 12.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.966e-05/0.927, allocations: 20 kB / 0.6513 GB, free: 12.66 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008803/0.9279, allocations: 427.1 kB / 0.6517 GB, free: 12.24 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.928, allocations: 0 / 0.6517 GB, free: 12.24 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002186/0.9302, allocations: 328 kB / 0.652 GB, free: 11.92 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 8 (turboGrp.w,generator.phi_el,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 10,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005516/0.9357, allocations: 2.93 MB / 0.6549 GB, free: 8.891 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003761/0.9395, allocations: 1.51 MB / 0.6563 GB, free: 7.332 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.9395, allocations: 1.938 kB / 0.6563 GB, free: 7.332 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002454/0.942, allocations: 1.035 MB / 0.6574 GB, free: 6.25 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001493/0.9435, allocations: 159.2 kB / 0.6575 GB, free: 6.098 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007591/0.9512, allocations: 2.562 MB / 0.66 GB, free: 3.461 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001517/0.9527, allocations: 1.286 MB / 0.6613 GB, free: 2.145 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009654/0.9537, allocations: 451.2 kB / 0.6617 GB, free: 1.703 MB / 458.7 MB Notification: Performance of SimCode: time 1.212e-06/0.9537, allocations: 0 / 0.6617 GB, free: 1.703 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.722/4.676, allocations: 36.72 MB / 0.6975 GB, free: 141.9 MB / 490.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1)