Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001138/0.001138, allocations: 179.6 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.252/1.252, allocations: 194.5 MB / 211.6 MB, free: 2.961 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001544/0.001544, allocations: 113.1 kB / 256.9 MB, free: 4.324 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1514/0.1514, allocations: 38 MB / 340.1 MB, free: 1.332 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003062/0.0003062, allocations: 15.98 kB / 403.9 MB, free: 68.68 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06698/0.0673, allocations: 53.23 MB / 457.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2799/0.3473, allocations: 116.3 MB / 0.56 GB, free: 11.28 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.3475, allocations: 98.8 kB / 0.5601 GB, free: 11.23 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08873/0.4363, allocations: 34.86 MB / 0.5941 GB, free: 13.63 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4363, allocations: 0 / 0.5941 GB, free: 13.63 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.638e-05/0.4364, allocations: 27.94 kB / 0.5941 GB, free: 13.6 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: 267 * Number of variables: 267 Notification: Performance of Generate backend data structure: time 0.003483/0.4399, allocations: 1.441 MB / 0.5955 GB, free: 12.19 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.44, allocations: 12.02 kB / 0.5955 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003977/0.4404, allocations: 162.7 kB / 0.5957 GB, free: 12.07 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006713/0.4411, allocations: 162.3 kB / 0.5959 GB, free: 11.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003027/0.4441, allocations: 1.212 MB / 0.597 GB, free: 10.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.474e-05/0.4442, allocations: 78.3 kB / 0.5971 GB, free: 10.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003524/0.4445, allocations: 118.1 kB / 0.5972 GB, free: 10.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002275/0.4468, allocations: 1.303 MB / 0.5985 GB, free: 9.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.525e-05/0.4469, allocations: 4 kB / 0.5985 GB, free: 9.816 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.447, allocations: 38.69 kB / 0.5985 GB, free: 9.809 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001038/0.4471, allocations: 68.66 kB / 0.5986 GB, free: 9.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/0.4489, allocations: 1.027 MB / 0.5996 GB, free: 9.078 MB / 410.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.00697/0.4559, allocations: 4.907 MB / 0.6044 GB, free: 4.703 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/0.457, allocations: 0.7381 MB / 0.6051 GB, free: 3.918 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.688e-05/0.4571, allocations: 16.61 kB / 0.6051 GB, free: 3.902 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.4571, allocations: 39.12 kB / 0.6052 GB, free: 3.855 MB / 410.7 MB Notification: Performance of pre-optimization done (n=63): time 2.224e-06/0.4571, allocations: 0 / 0.6052 GB, free: 3.855 MB / 410.7 MB Notification: Performance of matching and sorting (n=71): time 0.005543/0.4626, allocations: 3.032 MB / 0.6081 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.243e-05/0.4627, allocations: 111.4 kB / 0.6082 GB, free: 0.5586 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007764/0.4635, allocations: 0.6056 MB / 0.6088 GB, free: 15.94 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.087e-05/0.4636, allocations: 41.64 kB / 0.6089 GB, free: 15.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003396/0.4639, allocations: 0.5455 MB / 0.6094 GB, free: 15.34 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/0.4641, allocations: 252.3 kB / 0.6096 GB, free: 15.09 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.004e-05/0.4642, allocations: 20.06 kB / 0.6097 GB, free: 15.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.4643, allocations: 341.9 kB / 0.61 GB, free: 14.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004587/0.4647, allocations: 277.8 kB / 0.6103 GB, free: 14.46 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005792/0.4653, allocations: 0.5083 MB / 0.6107 GB, free: 13.85 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005907/0.4659, allocations: 384.9 kB / 0.6111 GB, free: 13.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.4659, allocations: 0 / 0.6111 GB, free: 13.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002548/0.4685, allocations: 1.258 MB / 0.6123 GB, free: 12.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009049/0.4694, allocations: 2.965 MB / 0.6152 GB, free: 9.004 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.584e-05/0.4694, allocations: 8 kB / 0.6152 GB, free: 8.996 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001409/0.4708, allocations: 412.4 kB / 0.6156 GB, free: 8.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006232/0.4715, allocations: 167.7 kB / 0.6158 GB, free: 8.426 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001463/0.473, allocations: 1.166 MB / 0.6169 GB, free: 7.234 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005488/0.4735, allocations: 35.89 kB / 0.617 GB, free: 7.199 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.648e-05/0.4736, allocations: 36.16 kB / 0.617 GB, free: 7.164 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.4736, allocations: 4 kB / 0.617 GB, free: 7.16 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002183/0.4758, allocations: 1.14 MB / 0.6181 GB, free: 6.016 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.4758, allocations: 16.02 kB / 0.6181 GB, free: 6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001255/0.4771, allocations: 388.5 kB / 0.6185 GB, free: 5.617 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006108/0.4777, allocations: 167.7 kB / 0.6187 GB, free: 5.453 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006601/0.4843, allocations: 4.774 MB / 0.6233 GB, free: 0.5391 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000545/0.4849, allocations: 39.89 kB / 0.6234 GB, free: 0.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.225e-05/0.485, allocations: 35.98 kB / 0.6234 GB, free: 476 kB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * 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 initialization (79): * Single equations (assignments): 78 * 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.0006101/0.4856, allocations: 424.8 kB / 0.6238 GB, free: 40 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001723/0.4858, allocations: 91.14 kB / 0.6239 GB, free: 15.95 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001347/0.4871, allocations: 0.8633 MB / 0.6247 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.4871, allocations: 8 kB / 0.6247 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.4871, allocations: 0 / 0.6247 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.4872, allocations: 3.984 kB / 0.6248 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00284/0.49, allocations: 1.807 MB / 0.6265 GB, free: 13.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.49, allocations: 0 / 0.6265 GB, free: 13.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008457/0.4909, allocations: 167.8 kB / 0.6267 GB, free: 13.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.829e-06/0.4909, allocations: 4 kB / 0.6267 GB, free: 13.01 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.359e-05/0.491, allocations: 19.94 kB / 0.6267 GB, free: 12.99 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.491, allocations: 4 kB / 0.6267 GB, free: 12.98 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.491, allocations: 4 kB / 0.6267 GB, free: 12.98 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.4925, allocations: 1.275 MB / 0.628 GB, free: 11.67 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003199/0.4929, allocations: 208 kB / 0.6282 GB, free: 11.45 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.493, allocations: 19.94 kB / 0.6282 GB, free: 11.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004392/0.4934, allocations: 27.89 kB / 0.6282 GB, free: 11.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.673e-05/0.4935, allocations: 48.53 kB / 0.6282 GB, free: 11.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.838e-05/0.4936, allocations: 20 kB / 0.6283 GB, free: 11.33 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005282/0.4941, allocations: 479 kB / 0.6287 GB, free: 10.87 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4941, allocations: 0 / 0.6287 GB, free: 10.87 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001244/0.4954, allocations: 427.9 kB / 0.6291 GB, free: 10.45 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.generator.phi_el,PMgen.generator.w_el,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.002053/0.4974, allocations: 2.105 MB / 0.6312 GB, free: 8.297 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002806/0.5002, allocations: 1.575 MB / 0.6327 GB, free: 6.703 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5003, allocations: 0 / 0.6327 GB, free: 6.703 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004805/0.5007, allocations: 343.5 kB / 0.633 GB, free: 6.371 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008845/0.5016, allocations: 220.3 kB / 0.6333 GB, free: 6.16 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/0.5126, allocations: 11.69 MB / 0.6447 GB, free: 10.14 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006982/0.5133, allocations: 1.198 MB / 0.6458 GB, free: 8.914 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0008033/0.5142, allocations: 231.2 kB / 0.6461 GB, free: 8.684 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004728/0.5146, allocations: 415.3 kB / 0.6465 GB, free: 8.277 MB / 458.7 MB Notification: Performance of SimCode: time 7.61e-07/0.5146, allocations: 0 / 0.6465 GB, free: 8.277 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.126/3.641, allocations: 24.02 MB / 0.6699 GB, free: 232 kB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.1468/3.788, allocations: 227.2 kB / 0.6701 GB, free: 150.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.558/7.346, allocations: 0 / 0.6701 GB, free: 150.8 MB / 474.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)