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.002133/0.002138, allocations: 186 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.988/1.988, allocations: 205.2 MB / 218.9 MB, free: 9.223 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.001086/0.001086, allocations: 87.77 kB / 267.1 MB, free: 9.289 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2672/0.2672, allocations: 37.97 MB / 353.1 MB, free: 3.074 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.506e-05/3.556e-05, allocations: 4 kB / 416.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1421, allocations: 56.31 MB / 473.2 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4893/0.6314, allocations: 112.1 MB / 0.5716 GB, free: 7.559 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003543/0.6318, allocations: 91.94 kB / 0.5717 GB, free: 7.469 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1349/0.7667, allocations: 29.7 MB / 0.6007 GB, free: 9.414 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.7668, allocations: 3.938 kB / 0.6007 GB, free: 9.41 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.185e-05/0.7669, allocations: 20 kB / 0.6007 GB, free: 9.391 MB / 442.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.003333/0.7702, allocations: 1.029 MB / 0.6017 GB, free: 8.312 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.7703, allocations: 8.031 kB / 0.6017 GB, free: 8.305 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004027/0.7707, allocations: 143.5 kB / 0.6019 GB, free: 8.156 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001916/0.7726, allocations: 186.7 kB / 0.602 GB, free: 7.973 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005096/0.7778, allocations: 1.184 MB / 0.6032 GB, free: 6.746 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.542e-05/0.7779, allocations: 69.97 kB / 0.6033 GB, free: 6.68 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003419/0.7782, allocations: 80 kB / 0.6033 GB, free: 6.602 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003061/0.7813, allocations: 1.093 MB / 0.6044 GB, free: 5.457 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.102e-05/0.7814, allocations: 4 kB / 0.6044 GB, free: 5.453 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001281/0.7815, allocations: 32 kB / 0.6044 GB, free: 5.422 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001838/0.7817, allocations: 61.97 kB / 0.6045 GB, free: 5.363 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002584/0.7843, allocations: 0.8627 MB / 0.6053 GB, free: 4.496 MB / 442.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.009347/0.7937, allocations: 4.088 MB / 0.6093 GB, free: 208 kB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.7948, allocations: 418.2 kB / 0.6097 GB, free: 15.76 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006644/0.7955, allocations: 257.7 kB / 0.61 GB, free: 15.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.214e-05/0.7956, allocations: 12 kB / 0.61 GB, free: 15.49 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.7957, allocations: 34.5 kB / 0.61 GB, free: 15.45 MB / 458.7 MB Notification: Performance of pre-optimization done (n=45): time 5.029e-06/0.7957, allocations: 0 / 0.61 GB, free: 15.45 MB / 458.7 MB Notification: Performance of matching and sorting (n=52): time 0.006953/0.8026, allocations: 1.797 MB / 0.6118 GB, free: 13.59 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.93e-05/0.8027, allocations: 89.48 kB / 0.6119 GB, free: 13.49 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009745/0.8037, allocations: 0.4891 MB / 0.6123 GB, free: 13 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.8039, allocations: 37.73 kB / 0.6124 GB, free: 12.95 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004429/0.8043, allocations: 496.8 kB / 0.6129 GB, free: 12.46 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002945/0.8046, allocations: 193.3 kB / 0.613 GB, free: 12.27 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.946e-05/0.8047, allocations: 16 kB / 0.6131 GB, free: 12.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.8049, allocations: 338.8 kB / 0.6134 GB, free: 11.91 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007208/0.8056, allocations: 261.5 kB / 0.6136 GB, free: 11.66 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009394/0.8066, allocations: 0.4905 MB / 0.6141 GB, free: 11.07 MB / 458.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.004122/0.8107, allocations: 0.7021 MB / 0.6148 GB, free: 10.36 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.8108, allocations: 0 / 0.6148 GB, free: 10.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003905/0.8147, allocations: 1.116 MB / 0.6159 GB, free: 9.211 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.056e-05/0.8147, allocations: 8 kB / 0.6159 GB, free: 9.203 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002981/0.8177, allocations: 0.8241 MB / 0.6167 GB, free: 8.348 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001113/0.8189, allocations: 219.2 kB / 0.6169 GB, free: 8.121 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/0.8201, allocations: 159.8 kB / 0.6171 GB, free: 7.965 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008976/0.8291, allocations: 6.254 MB / 0.6232 GB, free: 1.164 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009761/0.8301, allocations: 39.94 kB / 0.6232 GB, free: 1.125 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.702e-05/0.8302, allocations: 39.98 kB / 0.6232 GB, free: 1.086 MB / 458.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. 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 (85): * Single equations (assignments): 81 * 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.0002691/0.8305, allocations: 166.4 kB / 0.6234 GB, free: 0.918 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001672/0.8306, allocations: 63.25 kB / 0.6235 GB, free: 0.8555 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001673/0.8323, allocations: 0.6313 MB / 0.6241 GB, free: 220 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.8324, allocations: 4 kB / 0.6241 GB, free: 216 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.8324, allocations: 4 kB / 0.6241 GB, free: 212 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.8324, allocations: 7.922 kB / 0.6241 GB, free: 204 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004181/0.8366, allocations: 1.495 MB / 0.6256 GB, free: 14.63 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.8366, allocations: 0 / 0.6256 GB, free: 14.63 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/0.8379, allocations: 127.8 kB / 0.6257 GB, free: 14.51 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.395e-05/0.8379, allocations: 4 kB / 0.6257 GB, free: 14.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.691e-05/0.838, allocations: 15.98 kB / 0.6257 GB, free: 14.49 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.041e-05/0.838, allocations: 4 kB / 0.6257 GB, free: 14.48 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.685e-06/0.838, allocations: 8.141 kB / 0.6257 GB, free: 14.48 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002219/0.8402, allocations: 1.007 MB / 0.6267 GB, free: 13.39 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005229/0.8408, allocations: 184.3 kB / 0.6269 GB, free: 13.19 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001391/0.841, allocations: 12 kB / 0.6269 GB, free: 13.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005982/0.8416, allocations: 23.94 kB / 0.6269 GB, free: 13.16 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.8417, allocations: 36.33 kB / 0.6269 GB, free: 13.12 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.303e-05/0.8418, allocations: 16 kB / 0.6269 GB, free: 13.11 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007783/0.8426, allocations: 403.1 kB / 0.6273 GB, free: 12.71 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.8426, allocations: 0 / 0.6273 GB, free: 12.71 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00124/0.8438, allocations: 227.9 kB / 0.6276 GB, free: 12.49 MB / 474.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 (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.002903/0.8468, allocations: 2.072 MB / 0.6296 GB, free: 10.34 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002884/0.8497, allocations: 1.131 MB / 0.6307 GB, free: 9.16 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.8497, allocations: 4.125 kB / 0.6307 GB, free: 9.156 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006959/0.8504, allocations: 258.3 kB / 0.6309 GB, free: 8.906 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.8516, allocations: 143.4 kB / 0.6311 GB, free: 8.766 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005095/0.8567, allocations: 1.864 MB / 0.6329 GB, free: 6.832 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.8578, allocations: 1.102 MB / 0.634 GB, free: 5.699 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007235/0.8585, allocations: 315.3 kB / 0.6343 GB, free: 5.391 MB / 474.7 MB Notification: Performance of SimCode: time 1.112e-06/0.8585, allocations: 0 / 0.6343 GB, free: 5.391 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.464/4.323, allocations: 20.28 MB / 0.6541 GB, free: 128.6 MB / 474.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)