Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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.LocalGeneration,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",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.001717/0.001716, allocations: 181.6 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.108/2.108, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001234/0.001233, allocations: 86.88 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3953/0.3953, allocations: 38.06 MB / 356.6 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005018/0.0005017, allocations: 8 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1279, allocations: 56.33 MB / 479.1 MB, free: 1.953 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5893/0.7173, allocations: 122.4 MB / 0.5874 GB, free: 9.391 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000396/0.7177, allocations: 100.8 kB / 0.5875 GB, free: 9.336 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1644/0.8822, allocations: 35.55 MB / 0.6222 GB, free: 11.18 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.8822, allocations: 0 / 0.6222 GB, free: 11.18 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001497/0.8824, allocations: 27.94 kB / 0.6223 GB, free: 11.15 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.006363/0.8888, allocations: 1.467 MB / 0.6237 GB, free: 9.707 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.837e-05/0.8889, allocations: 12.03 kB / 0.6237 GB, free: 9.695 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008483/0.8897, allocations: 163 kB / 0.6239 GB, free: 9.59 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00111/0.8908, allocations: 158.3 kB / 0.624 GB, free: 9.434 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005379/0.8963, allocations: 1.243 MB / 0.6252 GB, free: 8.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/0.8964, allocations: 83.19 kB / 0.6253 GB, free: 8.359 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007664/0.8972, allocations: 123 kB / 0.6254 GB, free: 8.273 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004659/0.9019, allocations: 1.327 MB / 0.6267 GB, free: 7.273 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.149e-05/0.902, allocations: 8 kB / 0.6267 GB, free: 7.266 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002/0.9022, allocations: 44.86 kB / 0.6268 GB, free: 7.254 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002114/0.9025, allocations: 64.73 kB / 0.6268 GB, free: 7.199 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004103/0.9066, allocations: 1.041 MB / 0.6278 GB, free: 6.512 MB / 426.7 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.0008318498358936397 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01436/0.921, allocations: 5.136 MB / 0.6329 GB, free: 2.184 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002242/0.9233, allocations: 0.7411 MB / 0.6336 GB, free: 1.484 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001093/0.9234, allocations: 8.625 kB / 0.6336 GB, free: 1.477 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.71e-05/0.9235, allocations: 43.12 kB / 0.6336 GB, free: 1.426 MB / 426.7 MB Notification: Performance of pre-optimization done (n=64): time 4.048e-06/0.9235, allocations: 0 / 0.6336 GB, free: 1.426 MB / 426.7 MB Notification: Performance of matching and sorting (n=71): time 0.01059/0.9341, allocations: 2.671 MB / 0.6362 GB, free: 14.66 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.444e-05/0.9343, allocations: 107.4 kB / 0.6363 GB, free: 14.53 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001525/0.9358, allocations: 0.6343 MB / 0.637 GB, free: 13.89 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002209/0.9361, allocations: 45.77 kB / 0.637 GB, free: 13.84 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006046/0.9367, allocations: 0.5714 MB / 0.6376 GB, free: 13.26 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004586/0.9371, allocations: 248.3 kB / 0.6378 GB, free: 13.02 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.688e-05/0.9372, allocations: 16 kB / 0.6378 GB, free: 13 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000204/0.9375, allocations: 354.8 kB / 0.6382 GB, free: 12.64 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001007/0.9385, allocations: 277.8 kB / 0.6384 GB, free: 12.38 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001184/0.9397, allocations: 0.5285 MB / 0.6389 GB, free: 11.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001216/0.9409, allocations: 387 kB / 0.6393 GB, free: 11.36 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.941, allocations: 7.875 kB / 0.6393 GB, free: 11.35 MB / 442.7 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.005032/0.946, allocations: 1.231 MB / 0.6405 GB, free: 10.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001686/0.9477, allocations: 3.131 MB / 0.6436 GB, free: 6.723 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.718e-05/0.9478, allocations: 8 kB / 0.6436 GB, free: 6.715 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002889/0.9507, allocations: 420.5 kB / 0.644 GB, free: 6.301 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/0.9521, allocations: 167.7 kB / 0.6441 GB, free: 6.137 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003002/0.9552, allocations: 1.166 MB / 0.6453 GB, free: 4.941 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.9565, allocations: 31.98 kB / 0.6453 GB, free: 4.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.9566, allocations: 36 kB / 0.6453 GB, free: 4.875 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.9566, allocations: 4 kB / 0.6453 GB, free: 4.871 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004461/0.9611, allocations: 1.152 MB / 0.6465 GB, free: 3.715 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.835e-05/0.9612, allocations: 8 kB / 0.6465 GB, free: 3.707 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002398/0.9636, allocations: 404.7 kB / 0.6469 GB, free: 3.309 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001382/0.965, allocations: 171.9 kB / 0.647 GB, free: 3.141 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01291/0.978, allocations: 4.753 MB / 0.6517 GB, free: 14.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008619/0.9789, allocations: 35.89 kB / 0.6517 GB, free: 14.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/0.979, allocations: 39.98 kB / 0.6517 GB, free: 14.17 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {7 25} Notification: Performance of prepare postOptimizeDAE: time 0.001144/0.9802, allocations: 440.7 kB / 0.6522 GB, free: 13.73 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003343/0.9805, allocations: 90.88 kB / 0.6522 GB, free: 13.64 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002643/0.9832, allocations: 0.86 MB / 0.6531 GB, free: 12.75 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.921e-05/0.9832, allocations: 8 kB / 0.6531 GB, free: 12.74 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.9832, allocations: 4 kB / 0.6531 GB, free: 12.74 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.9833, allocations: 7.984 kB / 0.6531 GB, free: 12.73 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005619/0.9889, allocations: 1.81 MB / 0.6549 GB, free: 10.87 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.989, allocations: 0 / 0.6549 GB, free: 10.87 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001772/0.9907, allocations: 163.8 kB / 0.655 GB, free: 10.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.839e-05/0.9908, allocations: 7.938 kB / 0.655 GB, free: 10.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001282/0.9909, allocations: 16 kB / 0.6551 GB, free: 10.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.81e-05/0.991, allocations: 11.94 kB / 0.6551 GB, free: 10.67 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.231e-06/0.991, allocations: 7.938 kB / 0.6551 GB, free: 10.66 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003351/0.9943, allocations: 1.276 MB / 0.6563 GB, free: 9.344 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007051/0.9951, allocations: 219.8 kB / 0.6565 GB, free: 9.109 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001922/0.9953, allocations: 16 kB / 0.6565 GB, free: 9.094 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007952/0.9961, allocations: 19.98 kB / 0.6566 GB, free: 9.074 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.9963, allocations: 44.59 kB / 0.6566 GB, free: 9.031 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-05/0.9964, allocations: 31.88 kB / 0.6566 GB, free: 9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001209/0.9976, allocations: 499 kB / 0.6571 GB, free: 8.516 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.212e-06/0.9976, allocations: 0 / 0.6571 GB, free: 8.516 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002655/1, allocations: 432 kB / 0.6575 GB, free: 8.094 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * 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.004561/1.005, allocations: 2.116 MB / 0.6596 GB, free: 5.938 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005989/1.011, allocations: 1.582 MB / 0.6611 GB, free: 4.344 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.328e-06/1.011, allocations: 1.562 kB / 0.6611 GB, free: 4.344 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/1.012, allocations: 351.5 kB / 0.6615 GB, free: 4.004 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00227/1.014, allocations: 227.2 kB / 0.6617 GB, free: 3.785 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02406/1.039, allocations: 12.24 MB / 0.6736 GB, free: 7.176 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001378/1.04, allocations: 1.206 MB / 0.6748 GB, free: 5.941 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/1.041, allocations: 435.3 kB / 0.6752 GB, free: 5.516 MB / 474.7 MB Notification: Performance of SimCode: time 1.323e-06/1.041, allocations: 0 / 0.6752 GB, free: 5.516 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.206/4.247, allocations: 21.69 MB / 0.6964 GB, free: 15.8 MB / 0.4948 GB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_LocalGeneration_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)