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.001564/0.001564, allocations: 183.1 kB / 15.76 MB, free: 6.34 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.011/2.011, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001151/0.001151, allocations: 94.83 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.2682/0.2682, allocations: 38.05 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006449/0.0006452, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1222, allocations: 56.33 MB / 479.1 MB, free: 1.957 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5198/0.642, allocations: 112.2 MB / 0.5775 GB, free: 3.512 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003397/0.6424, allocations: 101.7 kB / 0.5776 GB, free: 3.457 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1353/0.7777, allocations: 29.72 MB / 0.6066 GB, free: 9.922 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.7778, allocations: 0 / 0.6066 GB, free: 9.922 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.715e-05/0.7778, allocations: 23.94 kB / 0.6066 GB, free: 9.898 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.003223/0.7811, allocations: 1.139 MB / 0.6077 GB, free: 8.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.7811, allocations: 8.031 kB / 0.6077 GB, free: 8.762 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002569/0.7814, allocations: 139.9 kB / 0.6079 GB, free: 8.668 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001751/0.7832, allocations: 190.7 kB / 0.6081 GB, free: 8.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005024/0.7882, allocations: 1.198 MB / 0.6092 GB, free: 7.434 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.087e-05/0.7883, allocations: 59.5 kB / 0.6093 GB, free: 7.402 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003279/0.7887, allocations: 93.52 kB / 0.6094 GB, free: 7.336 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002874/0.7916, allocations: 1.093 MB / 0.6104 GB, free: 6.504 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.982e-05/0.7917, allocations: 0 / 0.6104 GB, free: 6.504 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/0.7918, allocations: 35.67 kB / 0.6105 GB, free: 6.492 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001837/0.792, allocations: 68.34 kB / 0.6105 GB, free: 6.434 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002701/0.7947, allocations: 0.8742 MB / 0.6114 GB, free: 5.82 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.009903/0.8047, allocations: 4.093 MB / 0.6154 GB, free: 2.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001031/0.8058, allocations: 422 kB / 0.6158 GB, free: 1.805 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.831e-05/0.8059, allocations: 12.05 kB / 0.6158 GB, free: 1.793 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.36e-05/0.8059, allocations: 38.38 kB / 0.6158 GB, free: 1.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=45): time 3.457e-06/0.8059, allocations: 0 / 0.6158 GB, free: 1.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.007588/0.8135, allocations: 1.979 MB / 0.6178 GB, free: 148 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.418e-05/0.8137, allocations: 89.48 kB / 0.6179 GB, free: 40 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009976/0.8147, allocations: 0.4895 MB / 0.6183 GB, free: 15.65 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.666e-05/0.8147, allocations: 43.7 kB / 0.6184 GB, free: 15.61 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003949/0.8152, allocations: 498.9 kB / 0.6188 GB, free: 15.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002341/0.8154, allocations: 189.5 kB / 0.619 GB, free: 15.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.48e-05/0.8155, allocations: 18.09 kB / 0.619 GB, free: 15.04 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.8157, allocations: 347.6 kB / 0.6194 GB, free: 14.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007368/0.8164, allocations: 265.3 kB / 0.6196 GB, free: 14.53 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009178/0.8173, allocations: 0.4951 MB / 0.6201 GB, free: 14.03 MB / 426.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.003912/0.8213, allocations: 0.6785 MB / 0.6208 GB, free: 13.51 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.379e-05/0.8213, allocations: 4 kB / 0.6208 GB, free: 13.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004178/0.8255, allocations: 1.134 MB / 0.6219 GB, free: 12.59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.691e-05/0.8256, allocations: 11.94 kB / 0.6219 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003174/0.8288, allocations: 0.8289 MB / 0.6227 GB, free: 11.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00112/0.83, allocations: 212 kB / 0.6229 GB, free: 11.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/0.8312, allocations: 167 kB / 0.6231 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009689/0.8409, allocations: 6.347 MB / 0.6293 GB, free: 5.191 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009723/0.8419, allocations: 43.94 kB / 0.6293 GB, free: 5.148 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.658e-05/0.842, allocations: 36 kB / 0.6293 GB, free: 5.113 MB / 426.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 () * Number of clocked 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.0007866/0.8428, allocations: 317.4 kB / 0.6296 GB, free: 4.793 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.843, allocations: 67.2 kB / 0.6297 GB, free: 4.727 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001769/0.8448, allocations: 0.6356 MB / 0.6303 GB, free: 4.078 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/0.8448, allocations: 8 kB / 0.6303 GB, free: 4.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.8448, allocations: 0 / 0.6303 GB, free: 4.07 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/0.8449, allocations: 3.984 kB / 0.6303 GB, free: 4.066 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004169/0.849, allocations: 1.526 MB / 0.6318 GB, free: 2.469 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/0.8491, allocations: 8 kB / 0.6318 GB, free: 2.461 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/0.8503, allocations: 119.8 kB / 0.632 GB, free: 2.344 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.406e-05/0.8503, allocations: 4 kB / 0.632 GB, free: 2.34 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.9e-05/0.8504, allocations: 19.98 kB / 0.632 GB, free: 2.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.729e-06/0.8504, allocations: 4 kB / 0.632 GB, free: 2.316 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.8504, allocations: 4.188 kB / 0.632 GB, free: 2.312 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002297/0.8527, allocations: 1.029 MB / 0.633 GB, free: 1.203 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000474/0.8532, allocations: 180.3 kB / 0.6332 GB, free: 1.008 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001443/0.8534, allocations: 12 kB / 0.6332 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005791/0.854, allocations: 27.97 kB / 0.6332 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.8541, allocations: 40.28 kB / 0.6332 GB, free: 0.9297 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.048e-05/0.8542, allocations: 16 kB / 0.6333 GB, free: 0.9141 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008181/0.855, allocations: 403 kB / 0.6336 GB, free: 0.5234 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.855, allocations: 0 / 0.6336 GB, free: 0.5234 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001272/0.8563, allocations: 227.9 kB / 0.6339 GB, free: 308 kB / 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: 2 (system.initime,$cse3) * Number of discrete states: 0 () * Number of clocked 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.00314/0.8595, allocations: 2.099 MB / 0.6359 GB, free: 14.12 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003113/0.8626, allocations: 1.151 MB / 0.637 GB, free: 12.92 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.8627, allocations: 0 / 0.637 GB, free: 12.92 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000738/0.8634, allocations: 262.3 kB / 0.6373 GB, free: 12.66 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.8646, allocations: 131.3 kB / 0.6374 GB, free: 12.54 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01554/0.8801, allocations: 10.45 MB / 0.6476 GB, free: 1.816 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00111/0.8813, allocations: 1.098 MB / 0.6487 GB, free: 0.6914 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007926/0.8821, allocations: 319.3 kB / 0.649 GB, free: 388 kB / 442.7 MB Notification: Performance of SimCode: time 9.72e-07/0.8821, allocations: 4 kB / 0.649 GB, free: 384 kB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.169/4.052, allocations: 20.25 MB / 0.6688 GB, free: 12.09 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)