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: translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00104/0.00104, allocations: 188.5 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.369/1.369, allocations: 194.3 MB / 203.1 MB, free: 9.258 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001648/0.001648, allocations: 120.5 kB / 248.1 MB, free: 6.344 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1676/0.1676, allocations: 37.91 MB / 330.9 MB, free: 7.305 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.265e-05/1.268e-05, allocations: 0 / 390.4 MB, free: 78.23 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0925/0.09253, allocations: 53.23 MB / 443.6 MB, free: 25.1 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3587/0.4514, allocations: 115.5 MB / 0.546 GB, free: 8.934 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002281/0.4516, allocations: 88.52 kB / 0.5461 GB, free: 8.891 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.09644/0.5481, allocations: 34.5 MB / 0.5798 GB, free: 12.27 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.5481, allocations: 0 / 0.5798 GB, free: 12.27 MB / 395.1 MB Notification: Performance of Transformations before backend: time 9.633e-05/0.5482, allocations: 28 kB / 0.5798 GB, free: 12.24 MB / 395.1 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.003224/0.5515, allocations: 1.294 MB / 0.5811 GB, free: 10.96 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.5515, allocations: 12.03 kB / 0.5811 GB, free: 10.95 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008441/0.5524, allocations: 158.3 kB / 0.5812 GB, free: 10.8 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003446/0.5558, allocations: 1.199 MB / 0.5824 GB, free: 9.82 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.178e-05/0.5559, allocations: 32 kB / 0.5824 GB, free: 9.789 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003832/0.5563, allocations: 79.83 kB / 0.5825 GB, free: 9.711 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001776/0.5581, allocations: 0.9142 MB / 0.5834 GB, free: 9.141 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001987/0.5601, allocations: 1.14 MB / 0.5845 GB, free: 8.25 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.373e-05/0.5602, allocations: 0 / 0.5845 GB, free: 8.25 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.315e-05/0.5602, allocations: 4 kB / 0.5845 GB, free: 8.246 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001192/0.5604, allocations: 72.11 kB / 0.5846 GB, free: 8.184 MB / 395.1 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.00716/0.5675, allocations: 4.641 MB / 0.5891 GB, free: 3.891 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009598/0.5685, allocations: 0.6783 MB / 0.5898 GB, free: 3.164 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004157/0.5689, allocations: 305.2 kB / 0.5901 GB, free: 2.859 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.533e-05/0.569, allocations: 16.5 kB / 0.5901 GB, free: 2.844 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.5691, allocations: 43.06 kB / 0.5901 GB, free: 2.793 MB / 395.1 MB Notification: Performance of pre-optimization done (n=63): time 2.735e-06/0.5691, allocations: 0 / 0.5901 GB, free: 2.793 MB / 395.1 MB Notification: Performance of matching and sorting (n=71): time 0.004491/0.5736, allocations: 2.466 MB / 0.5926 GB, free: 212 kB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/0.5737, allocations: 111.4 kB / 0.5927 GB, free: 76 kB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007586/0.5744, allocations: 0.5038 MB / 0.5932 GB, free: 15.57 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 4.758e-05/0.5745, allocations: 25.7 kB / 0.5932 GB, free: 15.54 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003821/0.5749, allocations: 0.5493 MB / 0.5937 GB, free: 14.98 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000207/0.5751, allocations: 244.4 kB / 0.5939 GB, free: 14.74 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.679e-05/0.5751, allocations: 0 / 0.5939 GB, free: 14.74 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0002023/0.5753, allocations: 398.8 kB / 0.5943 GB, free: 14.34 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004311/0.5758, allocations: 246.6 kB / 0.5946 GB, free: 14.1 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005687/0.5764, allocations: 0.4894 MB / 0.595 GB, free: 13.5 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005674/0.5769, allocations: 356.2 kB / 0.5954 GB, free: 13.15 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.577, allocations: 4 kB / 0.5954 GB, free: 13.15 MB / 411.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002438/0.5794, allocations: 1.14 MB / 0.5965 GB, free: 12 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001245/0.5807, allocations: 3.057 MB / 0.5995 GB, free: 8.707 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/0.5807, allocations: 8 kB / 0.5995 GB, free: 8.699 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001269/0.582, allocations: 388.5 kB / 0.5999 GB, free: 8.316 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006697/0.5826, allocations: 171.7 kB / 0.6 GB, free: 8.148 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001403/0.5841, allocations: 1.166 MB / 0.6012 GB, free: 6.957 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000575/0.5846, allocations: 19.89 kB / 0.6012 GB, free: 6.938 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.996e-05/0.5847, allocations: 39.98 kB / 0.6012 GB, free: 6.898 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.044e-05/0.5847, allocations: 4 kB / 0.6012 GB, free: 6.895 MB / 411.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002048/0.5868, allocations: 1.014 MB / 0.6022 GB, free: 5.875 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.5868, allocations: 8 kB / 0.6022 GB, free: 5.867 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001188/0.588, allocations: 377 kB / 0.6026 GB, free: 5.496 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005977/0.5886, allocations: 167.7 kB / 0.6027 GB, free: 5.332 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00685/0.5955, allocations: 4.427 MB / 0.6071 GB, free: 0.7812 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006486/0.5962, allocations: 15.89 kB / 0.6071 GB, free: 0.7656 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.5963, allocations: 39.98 kB / 0.6071 GB, free: 0.7266 MB / 411.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: PMgen.term.i[1]:VARIABLE(flow=true unit = "A" nominal = 1.0 ) "current vector" type: Real [2] PMgen.generator.psi_s[1]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real PMgen.inverter.vDC1:VARIABLE(unit = "V" nominal = 1000.0 protected = true ) type: Real PMgen.generator.i_dq[2]:VARIABLE(unit = "A" nominal = 1.0 protected = true ) "current demand {i_d, i_q} pu" type: Real [2] $DER.zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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): 79 * 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.0003381/0.5966, allocations: 146.6 kB / 0.6073 GB, free: 0.5742 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002211/0.5969, allocations: 82.97 kB / 0.6073 GB, free: 0.4922 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/0.5984, allocations: 0.7805 MB / 0.6081 GB, free: 15.68 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.5984, allocations: 8 kB / 0.6081 GB, free: 15.67 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/0.5984, allocations: 4 kB / 0.6081 GB, free: 15.67 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.5985, allocations: 7.922 kB / 0.6081 GB, free: 15.66 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003156/0.6016, allocations: 1.608 MB / 0.6097 GB, free: 14 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.6017, allocations: 8.031 kB / 0.6097 GB, free: 14 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009495/0.6026, allocations: 163.8 kB / 0.6098 GB, free: 13.84 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.187e-05/0.6026, allocations: 0 / 0.6098 GB, free: 13.84 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.157e-05/0.6027, allocations: 8 kB / 0.6099 GB, free: 13.83 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.927e-06/0.6027, allocations: 4 kB / 0.6099 GB, free: 13.82 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.6027, allocations: 4 kB / 0.6099 GB, free: 13.82 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001691/0.6044, allocations: 1.193 MB / 0.611 GB, free: 12.59 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003451/0.6048, allocations: 207.9 kB / 0.6112 GB, free: 12.37 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000119/0.6049, allocations: 4 kB / 0.6112 GB, free: 12.36 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004322/0.6053, allocations: 11.98 kB / 0.6112 GB, free: 12.35 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.561e-05/0.6054, allocations: 52.67 kB / 0.6113 GB, free: 12.3 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.289e-05/0.6055, allocations: 16 kB / 0.6113 GB, free: 12.29 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0005188/0.606, allocations: 391.1 kB / 0.6117 GB, free: 11.91 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.606, allocations: 4 kB / 0.6117 GB, free: 11.9 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.001552/0.6076, allocations: 367.9 kB / 0.612 GB, free: 11.54 MB / 427.1 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 () * 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.0003571/0.608, allocations: 166.9 kB / 0.6122 GB, free: 11.37 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.00313/0.6111, allocations: 1.505 MB / 0.6137 GB, free: 9.852 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.6111, allocations: 0 / 0.6137 GB, free: 9.852 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004739/0.6116, allocations: 314.8 kB / 0.614 GB, free: 9.543 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009423/0.6126, allocations: 177.3 kB / 0.6141 GB, free: 9.375 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003284/0.6158, allocations: 1.885 MB / 0.616 GB, free: 7.453 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000918/0.6168, allocations: 1.203 MB / 0.6172 GB, free: 6.219 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.001106/0.6179, allocations: 286.6 kB / 0.6174 GB, free: 5.934 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001673/0.6181, allocations: 59.42 kB / 0.6175 GB, free: 5.875 MB / 427.1 MB Notification: Performance of SimCode: time 4.91e-07/0.6181, allocations: 0 / 0.6175 GB, free: 5.875 MB / 427.1 MB Notification: Performance of Templates: time 0.0239/0.642, allocations: 13.84 MB / 0.631 GB, free: 8.059 MB / 443.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.makefile (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 & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)