Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.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.TurbineGenerator,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",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.00206/0.00206, allocations: 185.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.044/2.044, 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.001058/0.001058, allocations: 86.7 kB / 261.7 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3012/0.3012, allocations: 37.98 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.113e-05/2.09e-05, allocations: 4 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1067, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6046/0.7113, allocations: 112.5 MB / 0.5652 GB, free: 15.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003221/0.7117, allocations: 99.12 kB / 0.5653 GB, free: 14.97 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1283/0.84, allocations: 29.7 MB / 0.5943 GB, free: 5.984 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.84, allocations: 4 kB / 0.5943 GB, free: 5.98 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.286e-05/0.8401, allocations: 23.98 kB / 0.5943 GB, free: 5.957 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002855/0.843, allocations: 1.037 MB / 0.5954 GB, free: 4.926 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.831e-05/0.8431, allocations: 16.03 kB / 0.5954 GB, free: 4.91 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001743/0.8448, allocations: 190.6 kB / 0.5956 GB, free: 4.723 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004853/0.8497, allocations: 1.205 MB / 0.5967 GB, free: 3.688 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.741e-05/0.8498, allocations: 32 kB / 0.5968 GB, free: 3.656 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002645/0.8501, allocations: 55.84 kB / 0.5968 GB, free: 3.602 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001904/0.852, allocations: 0.713 MB / 0.5975 GB, free: 3.125 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002163/0.8542, allocations: 0.9438 MB / 0.5984 GB, free: 2.371 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.409e-05/0.8542, allocations: 11.69 kB / 0.5984 GB, free: 2.363 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.336e-05/0.8543, allocations: 0 / 0.5984 GB, free: 2.363 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001739/0.8545, allocations: 61.34 kB / 0.5985 GB, free: 2.305 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008097/0.8626, allocations: 3.817 MB / 0.6022 GB, free: 14.89 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009854/0.8636, allocations: 0.5046 MB / 0.6027 GB, free: 14.44 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005935/0.8643, allocations: 267.8 kB / 0.603 GB, free: 14.26 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.383e-05/0.8643, allocations: 15.98 kB / 0.603 GB, free: 14.24 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.8644, allocations: 38.56 kB / 0.603 GB, free: 14.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=50): time 3.346e-06/0.8644, allocations: 3.938 kB / 0.603 GB, free: 14.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=53): time 0.003625/0.868, allocations: 1.433 MB / 0.6044 GB, free: 12.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.538e-05/0.8681, allocations: 81.55 kB / 0.6045 GB, free: 12.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007545/0.8689, allocations: 430.5 kB / 0.6049 GB, free: 12.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.475e-05/0.869, allocations: 25.7 kB / 0.6049 GB, free: 12.49 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003989/0.8694, allocations: 0.4921 MB / 0.6054 GB, free: 12.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002332/0.8696, allocations: 196.7 kB / 0.6056 GB, free: 11.92 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-05/0.8697, allocations: 0 / 0.6056 GB, free: 11.92 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.8699, allocations: 337.4 kB / 0.6059 GB, free: 11.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005584/0.8704, allocations: 233.3 kB / 0.6062 GB, free: 11.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007683/0.8712, allocations: 449.8 kB / 0.6066 GB, free: 11 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007504/0.872, allocations: 322.8 kB / 0.6069 GB, free: 10.78 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.872, allocations: 4 kB / 0.6069 GB, free: 10.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002887/0.8749, allocations: 1.001 MB / 0.6079 GB, free: 9.934 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.199e-05/0.875, allocations: 8 kB / 0.6079 GB, free: 9.926 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002155/0.8771, allocations: 0.764 MB / 0.6086 GB, free: 9.301 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/0.8784, allocations: 221.3 kB / 0.6088 GB, free: 9.113 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.8794, allocations: 152.2 kB / 0.609 GB, free: 8.969 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008077/0.8875, allocations: 5.255 MB / 0.6141 GB, free: 3.918 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008559/0.8884, allocations: 16.09 kB / 0.6141 GB, free: 3.902 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.808e-05/0.8885, allocations: 44.88 kB / 0.6142 GB, free: 3.863 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: generator.psi_s[2]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (80): * Single equations (assignments): 77 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002571/0.8888, allocations: 123.9 kB / 0.6143 GB, free: 3.738 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001274/0.8901, allocations: 0.5172 MB / 0.6148 GB, free: 3.227 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/0.8902, allocations: 59.25 kB / 0.6149 GB, free: 3.168 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001444/0.8917, allocations: 0.565 MB / 0.6154 GB, free: 2.594 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.8917, allocations: 7.984 kB / 0.6154 GB, free: 2.586 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.8917, allocations: 3.953 kB / 0.6154 GB, free: 2.582 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.8917, allocations: 0 / 0.6154 GB, free: 2.582 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003669/0.8954, allocations: 1.351 MB / 0.6167 GB, free: 1.172 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.8954, allocations: 0 / 0.6167 GB, free: 1.172 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001238/0.8967, allocations: 139.9 kB / 0.6169 GB, free: 1.035 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.254e-05/0.8967, allocations: 4 kB / 0.6169 GB, free: 1.031 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.167e-05/0.8968, allocations: 4 kB / 0.6169 GB, free: 1.027 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.538e-06/0.8968, allocations: 7.984 kB / 0.6169 GB, free: 1.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.8968, allocations: 0 / 0.6169 GB, free: 1.02 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001982/0.8988, allocations: 0.9673 MB / 0.6178 GB, free: 15.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004451/0.8993, allocations: 196.1 kB / 0.618 GB, free: 15.77 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001206/0.8994, allocations: 7.938 kB / 0.618 GB, free: 15.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005587/0.9, allocations: 19.91 kB / 0.618 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.881e-05/0.9001, allocations: 32.39 kB / 0.6181 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.87e-05/0.9001, allocations: 12 kB / 0.6181 GB, free: 15.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005751/0.9007, allocations: 322.9 kB / 0.6184 GB, free: 15.39 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.304e-06/0.9008, allocations: 4 kB / 0.6184 GB, free: 15.39 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00122/0.902, allocations: 195.9 kB / 0.6186 GB, free: 15.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (54): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002609/0.9046, allocations: 1.962 MB / 0.6205 GB, free: 13.16 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002402/0.907, allocations: 0.962 MB / 0.6214 GB, free: 12.17 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.9071, allocations: 1.312 kB / 0.6214 GB, free: 12.17 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005856/0.9077, allocations: 253.5 kB / 0.6217 GB, free: 11.92 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.9087, allocations: 122.3 kB / 0.6218 GB, free: 11.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005063/0.9138, allocations: 1.925 MB / 0.6237 GB, free: 9.809 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001081/0.9149, allocations: 1.106 MB / 0.6248 GB, free: 8.672 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007392/0.9156, allocations: 323.3 kB / 0.6251 GB, free: 8.355 MB / 426.7 MB Notification: Performance of SimCode: time 1.052e-06/0.9156, allocations: 0 / 0.6251 GB, free: 8.355 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.948/3.864, allocations: 18.26 MB / 0.6429 GB, free: 6.074 MB / 442.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1)