Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_latest_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.001751/0.001751, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.597/1.597, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.0008603/0.0008602, allocations: 94.62 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1568/0.1568, allocations: 37.98 MB / 353.5 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.714e-05/3.716e-05, allocations: 4 kB / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1091, allocations: 56.31 MB / 474.1 MB, free: 4.711 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4143/0.5235, allocations: 112.1 MB / 0.5725 GB, free: 6.902 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/0.5238, allocations: 95.88 kB / 0.5726 GB, free: 6.859 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08071/0.6046, allocations: 29.7 MB / 0.6016 GB, free: 13.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.6046, allocations: 0 / 0.6016 GB, free: 13.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.674e-05/0.6047, allocations: 20 kB / 0.6016 GB, free: 13.32 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.00218/0.6069, allocations: 1.034 MB / 0.6026 GB, free: 12.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.762e-05/0.6069, allocations: 12.03 kB / 0.6027 GB, free: 12.28 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001838/0.6071, allocations: 141.4 kB / 0.6028 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00109/0.6082, allocations: 186.7 kB / 0.603 GB, free: 12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003293/0.6115, allocations: 1.191 MB / 0.6041 GB, free: 10.96 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.208e-05/0.6116, allocations: 59.56 kB / 0.6042 GB, free: 10.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001932/0.6118, allocations: 89.17 kB / 0.6043 GB, free: 10.87 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00168/0.6135, allocations: 1.086 MB / 0.6053 GB, free: 10.05 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.89e-05/0.6135, allocations: 0 / 0.6053 GB, free: 10.05 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.69e-05/0.6136, allocations: 39.3 kB / 0.6054 GB, free: 10.03 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000104/0.6137, allocations: 65.34 kB / 0.6054 GB, free: 9.977 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/0.6151, allocations: 0.8514 MB / 0.6063 GB, free: 9.379 MB / 410.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.005322/0.6204, allocations: 4.092 MB / 0.6103 GB, free: 5.727 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005785/0.621, allocations: 412.4 kB / 0.6107 GB, free: 5.379 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003457/0.6214, allocations: 260.5 kB / 0.6109 GB, free: 5.207 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.369e-05/0.6214, allocations: 7.984 kB / 0.6109 GB, free: 5.199 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.6215, allocations: 41.94 kB / 0.6109 GB, free: 5.152 MB / 410.7 MB Notification: Performance of pre-optimization done (n=45): time 3.417e-06/0.6215, allocations: 3.938 kB / 0.611 GB, free: 5.148 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.003826/0.6253, allocations: 1.788 MB / 0.6127 GB, free: 3.633 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.911e-05/0.6254, allocations: 93.44 kB / 0.6128 GB, free: 3.523 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005984/0.626, allocations: 496.6 kB / 0.6133 GB, free: 3.141 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.051e-05/0.6261, allocations: 36.14 kB / 0.6133 GB, free: 3.105 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002998/0.6264, allocations: 466.6 kB / 0.6137 GB, free: 2.746 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.6265, allocations: 192.2 kB / 0.6139 GB, free: 2.582 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.279e-05/0.6266, allocations: 15.12 kB / 0.6139 GB, free: 2.578 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.6268, allocations: 380 kB / 0.6143 GB, free: 2.227 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003842/0.6271, allocations: 258.8 kB / 0.6145 GB, free: 2.055 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005455/0.6277, allocations: 497.4 kB / 0.615 GB, free: 1.57 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.002103/0.6298, allocations: 0.7136 MB / 0.6157 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.6298, allocations: 4 kB / 0.6157 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002181/0.632, allocations: 1.158 MB / 0.6169 GB, free: 24 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.632, allocations: 8 kB / 0.6169 GB, free: 16 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001584/0.6336, allocations: 0.8274 MB / 0.6177 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006963/0.6343, allocations: 207.6 kB / 0.6179 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005474/0.6349, allocations: 167.3 kB / 0.618 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00596/0.6409, allocations: 6.246 MB / 0.6241 GB, free: 8.461 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006488/0.6416, allocations: 47.86 kB / 0.6242 GB, free: 8.414 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.328e-05/0.6416, allocations: 28.06 kB / 0.6242 GB, free: 8.387 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 () * 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.0002052/0.6418, allocations: 160.7 kB / 0.6244 GB, free: 8.223 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.642, allocations: 71.12 kB / 0.6244 GB, free: 8.152 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001099/0.6431, allocations: 0.6197 MB / 0.625 GB, free: 7.523 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/0.6431, allocations: 12 kB / 0.625 GB, free: 7.512 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.6431, allocations: 3.938 kB / 0.625 GB, free: 7.508 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.6431, allocations: 3.984 kB / 0.625 GB, free: 7.504 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002514/0.6456, allocations: 1.506 MB / 0.6265 GB, free: 5.926 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.6456, allocations: 4 kB / 0.6265 GB, free: 5.922 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005759/0.6462, allocations: 119.8 kB / 0.6266 GB, free: 5.805 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.247e-06/0.6462, allocations: 4 kB / 0.6266 GB, free: 5.801 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.084e-05/0.6463, allocations: 19.98 kB / 0.6267 GB, free: 5.781 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.52e-05/0.6463, allocations: 4 kB / 0.6267 GB, free: 5.777 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.6463, allocations: 3.953 kB / 0.6267 GB, free: 5.773 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.6476, allocations: 1.007 MB / 0.6276 GB, free: 4.688 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000318/0.648, allocations: 184.3 kB / 0.6278 GB, free: 4.488 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.894e-05/0.648, allocations: 12 kB / 0.6278 GB, free: 4.477 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003247/0.6484, allocations: 23.94 kB / 0.6279 GB, free: 4.453 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.735e-05/0.6485, allocations: 36.39 kB / 0.6279 GB, free: 4.418 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.499e-05/0.6485, allocations: 19.98 kB / 0.6279 GB, free: 4.398 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004932/0.649, allocations: 395.2 kB / 0.6283 GB, free: 4.016 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.649, allocations: 0 / 0.6283 GB, free: 4.016 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008962/0.6499, allocations: 223.9 kB / 0.6285 GB, free: 3.797 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 (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.001829/0.6517, allocations: 2.08 MB / 0.6305 GB, free: 1.637 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00185/0.6536, allocations: 1.134 MB / 0.6316 GB, free: 464 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.6536, allocations: 4.375 kB / 0.6316 GB, free: 460 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003655/0.654, allocations: 266.3 kB / 0.6319 GB, free: 192 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006566/0.6547, allocations: 123.3 kB / 0.632 GB, free: 68 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003248/0.6579, allocations: 1.797 MB / 0.6338 GB, free: 14.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007554/0.6587, allocations: 1.099 MB / 0.6348 GB, free: 13.07 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005541/0.6593, allocations: 197.8 kB / 0.635 GB, free: 12.88 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004326/0.6597, allocations: 315.3 kB / 0.6353 GB, free: 12.57 MB / 442.7 MB Notification: Performance of SimCode: time 9.71e-07/0.6597, allocations: 0 / 0.6353 GB, free: 12.57 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03313/0.6929, allocations: 15.85 MB / 0.6508 GB, free: 12.74 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/0.6931, allocations: 194.9 kB / 0.651 GB, free: 12.51 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.421/3.114, allocations: 0 / 0.651 GB, free: 12.51 MB / 458.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle_res.mat does not exist to compare? outputFormat=mat