Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.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.PowerAngle,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_PowerAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_PowerAngle",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.002019/0.002018, allocations: 180.1 kB / 8.009 MB, free: 1.066 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.028/2.028, allocations: 205.3 MB / 213.7 MB, free: 1.742 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.001116/0.001116, allocations: 90.16 kB / 261.8 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.2628/0.2628, allocations: 38 MB / 347.7 MB, free: 5.777 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.076e-05/2.09e-05, allocations: 4 kB / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1043, allocations: 56.32 MB / 466.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5083/0.6127, allocations: 111.4 MB / 0.5642 GB, free: 132 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002899/0.613, allocations: 90.45 kB / 0.5643 GB, free: 88 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1343/0.7473, allocations: 29.43 MB / 0.593 GB, free: 7.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.7474, allocations: 0 / 0.593 GB, free: 7.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.149e-05/0.7475, allocations: 20 kB / 0.593 GB, free: 7.25 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.003611/0.7511, allocations: 1.038 MB / 0.594 GB, free: 6.219 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.895e-05/0.7512, allocations: 8.031 kB / 0.594 GB, free: 6.211 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002146/0.7533, allocations: 194.6 kB / 0.5942 GB, free: 6.02 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005211/0.7586, allocations: 1.182 MB / 0.5954 GB, free: 5.004 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.319e-05/0.7587, allocations: 27.94 kB / 0.5954 GB, free: 4.977 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003752/0.7591, allocations: 55.98 kB / 0.5955 GB, free: 4.922 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002275/0.7614, allocations: 0.722 MB / 0.5962 GB, free: 4.441 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002823/0.7643, allocations: 0.9655 MB / 0.5971 GB, free: 3.676 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.629e-05/0.7644, allocations: 3.938 kB / 0.5971 GB, free: 3.672 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001104/0.7646, allocations: 8 kB / 0.5971 GB, free: 3.664 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001999/0.7648, allocations: 65.41 kB / 0.5972 GB, free: 3.605 MB / 394.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01034/0.7751, allocations: 3.894 MB / 0.601 GB, free: 104 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.7763, allocations: 0.4984 MB / 0.6015 GB, free: 15.65 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006816/0.777, allocations: 259.2 kB / 0.6017 GB, free: 15.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.855e-05/0.7771, allocations: 16.31 kB / 0.6017 GB, free: 15.46 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/0.7771, allocations: 34.25 kB / 0.6018 GB, free: 15.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=47): time 4.258e-06/0.7771, allocations: 0 / 0.6018 GB, free: 15.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=54): time 0.005657/0.7828, allocations: 1.642 MB / 0.6034 GB, free: 14.03 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.503e-05/0.7829, allocations: 89.53 kB / 0.6035 GB, free: 13.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008112/0.7838, allocations: 411.4 kB / 0.6038 GB, free: 13.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001323/0.7839, allocations: 29.64 kB / 0.6039 GB, free: 13.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000456/0.7844, allocations: 0.4996 MB / 0.6044 GB, free: 13.15 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003012/0.7847, allocations: 191.1 kB / 0.6045 GB, free: 12.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.8e-05/0.7848, allocations: 0 / 0.6045 GB, free: 12.99 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.785, allocations: 351.5 kB / 0.6049 GB, free: 12.65 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000634/0.7856, allocations: 249.9 kB / 0.6051 GB, free: 12.49 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008221/0.7864, allocations: 482.9 kB / 0.6056 GB, free: 12.02 MB / 410.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.004106/0.7906, allocations: 0.6955 MB / 0.6063 GB, free: 11.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.324e-05/0.7906, allocations: 4 kB / 0.6063 GB, free: 11.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003849/0.7945, allocations: 1.052 MB / 0.6073 GB, free: 10.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.922e-05/0.7946, allocations: 8 kB / 0.6073 GB, free: 10.56 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003774/0.7984, allocations: 0.7919 MB / 0.6081 GB, free: 9.906 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/0.7995, allocations: 210.3 kB / 0.6083 GB, free: 9.723 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.8007, allocations: 167.2 kB / 0.6084 GB, free: 9.566 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008636/0.8094, allocations: 5.989 MB / 0.6143 GB, free: 3.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009507/0.8104, allocations: 27.84 kB / 0.6143 GB, free: 3.543 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.246e-05/0.8105, allocations: 33.86 kB / 0.6143 GB, free: 3.516 MB / 410.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: infBus.V = 20000.0 * infBus.v0. Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: infBus.V:VARIABLE(unit = "V" nominal = 1000.0 protected = true ) = 20000.0 * infBus.v0 type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 83 * 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,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003262/0.8108, allocations: 136.3 kB / 0.6145 GB, free: 3.379 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001406/0.8123, allocations: 0.5367 MB / 0.615 GB, free: 2.895 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.8125, allocations: 63.25 kB / 0.6151 GB, free: 2.832 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00156/0.814, allocations: 0.5921 MB / 0.6156 GB, free: 2.234 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.622e-05/0.8141, allocations: 11.98 kB / 0.6156 GB, free: 2.223 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.8141, allocations: 7.891 kB / 0.6156 GB, free: 2.215 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-05/0.8141, allocations: 7.984 kB / 0.6157 GB, free: 2.207 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003972/0.8181, allocations: 1.381 MB / 0.617 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/0.8182, allocations: 4 kB / 0.617 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001231/0.8194, allocations: 131.8 kB / 0.6171 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.415e-05/0.8194, allocations: 4 kB / 0.6171 GB, free: 0.625 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.575e-05/0.8195, allocations: 4 kB / 0.6171 GB, free: 0.6211 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-05/0.8195, allocations: 4 kB / 0.6171 GB, free: 0.6172 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/0.8195, allocations: 8.188 kB / 0.6172 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002101/0.8217, allocations: 1.001 MB / 0.6181 GB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004938/0.8222, allocations: 180.3 kB / 0.6183 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/0.8223, allocations: 7.984 kB / 0.6183 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005912/0.8229, allocations: 15.98 kB / 0.6183 GB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.8231, allocations: 32.39 kB / 0.6184 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.833e-05/0.8231, allocations: 19.95 kB / 0.6184 GB, free: 15.27 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005922/0.8237, allocations: 330.8 kB / 0.6187 GB, free: 14.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.8237, allocations: 0 / 0.6187 GB, free: 14.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001288/0.825, allocations: 196 kB / 0.6189 GB, free: 14.75 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (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 (55): * Single equations (assignments): 54 * 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.002744/0.8278, allocations: 2.071 MB / 0.6209 GB, free: 12.61 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002818/0.8307, allocations: 1.087 MB / 0.622 GB, free: 11.48 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.8307, allocations: 0 / 0.622 GB, free: 11.48 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006697/0.8314, allocations: 253.8 kB / 0.6222 GB, free: 11.23 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/0.8326, allocations: 114 kB / 0.6223 GB, free: 11.12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005393/0.8381, allocations: 1.828 MB / 0.6241 GB, free: 9.219 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001046/0.8392, allocations: 1.094 MB / 0.6252 GB, free: 8.098 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007662/0.8399, allocations: 315.3 kB / 0.6255 GB, free: 7.789 MB / 426.7 MB Notification: Performance of SimCode: time 3.316e-06/0.84, allocations: 0 / 0.6255 GB, free: 7.789 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.144/3.984, allocations: 19.89 MB / 0.6449 GB, free: 3.875 MB / 442.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_PowerAngle_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_PowerAngle.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)