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.001088/0.001088, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.754/1.754, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009109/0.000911, allocations: 84.05 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2085/0.2085, allocations: 37.99 MB / 348 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.08e-05/2.074e-05, allocations: 4 kB / 410.7 MB, free: 46.84 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1202, allocations: 56.33 MB / 467 MB, free: 6.461 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4359/0.5561, allocations: 111.4 MB / 0.5649 GB, free: 15.29 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003073/0.5565, allocations: 95.94 kB / 0.565 GB, free: 15.2 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07979/0.6363, allocations: 29.43 MB / 0.5937 GB, free: 1.418 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.6364, allocations: 0 / 0.5937 GB, free: 1.418 MB / 427.1 MB Notification: Performance of Transformations before backend: time 5.21e-05/0.6364, allocations: 24 kB / 0.5937 GB, free: 1.395 MB / 427.1 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.001965/0.6384, allocations: 1.033 MB / 0.5947 GB, free: 316 kB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.6385, allocations: 8.031 kB / 0.5948 GB, free: 308 kB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001028/0.6395, allocations: 194.7 kB / 0.5949 GB, free: 112 kB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00283/0.6423, allocations: 1.183 MB / 0.5961 GB, free: 14.89 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.432e-05/0.6424, allocations: 28 kB / 0.5961 GB, free: 14.86 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001714/0.6426, allocations: 51.98 kB / 0.5962 GB, free: 14.81 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001189/0.6438, allocations: 0.7224 MB / 0.5969 GB, free: 14.09 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.6452, allocations: 0.9678 MB / 0.5978 GB, free: 13.07 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.198e-05/0.6453, allocations: 3.938 kB / 0.5978 GB, free: 13.07 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.486e-05/0.6453, allocations: 4 kB / 0.5978 GB, free: 13.06 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001102/0.6455, allocations: 65.97 kB / 0.5979 GB, free: 13 MB / 443.1 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.00487/0.6503, allocations: 3.896 MB / 0.6017 GB, free: 8.902 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006069/0.651, allocations: 0.4923 MB / 0.6022 GB, free: 8.355 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003323/0.6513, allocations: 262.8 kB / 0.6024 GB, free: 8.094 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.528e-05/0.6514, allocations: 8.328 kB / 0.6024 GB, free: 8.086 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.807e-05/0.6514, allocations: 34.94 kB / 0.6025 GB, free: 8.043 MB / 443.1 MB Notification: Performance of pre-optimization done (n=47): time 3.066e-06/0.6514, allocations: 4 kB / 0.6025 GB, free: 8.039 MB / 443.1 MB Notification: Performance of matching and sorting (n=54): time 0.002938/0.6544, allocations: 1.638 MB / 0.6041 GB, free: 6.352 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.773e-05/0.6544, allocations: 93.53 kB / 0.6042 GB, free: 6.242 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004832/0.6549, allocations: 410.1 kB / 0.6046 GB, free: 5.836 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 3.659e-05/0.655, allocations: 25.7 kB / 0.6046 GB, free: 5.805 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003086/0.6553, allocations: 474.3 kB / 0.605 GB, free: 5.332 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.6554, allocations: 197.1 kB / 0.6052 GB, free: 5.137 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.012e-05/0.6555, allocations: 0 / 0.6052 GB, free: 5.137 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.6557, allocations: 378.7 kB / 0.6056 GB, free: 4.758 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003426/0.656, allocations: 245.5 kB / 0.6058 GB, free: 4.52 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004844/0.6565, allocations: 492.7 kB / 0.6063 GB, free: 3.934 MB / 443.1 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.002095/0.6586, allocations: 0.7049 MB / 0.607 GB, free: 3.23 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.6586, allocations: 4 kB / 0.607 GB, free: 3.227 MB / 443.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002007/0.6606, allocations: 1.081 MB / 0.608 GB, free: 2.105 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.6607, allocations: 8 kB / 0.608 GB, free: 2.098 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001491/0.6622, allocations: 0.7962 MB / 0.6088 GB, free: 1.27 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006018/0.6628, allocations: 203.3 kB / 0.609 GB, free: 1.059 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005492/0.6634, allocations: 163.7 kB / 0.6092 GB, free: 0.8984 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005499/0.6689, allocations: 5.999 MB / 0.615 GB, free: 10.43 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005676/0.6695, allocations: 27.83 kB / 0.615 GB, free: 10.4 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.847e-05/0.6695, allocations: 36 kB / 0.6151 GB, free: 10.37 MB / 459.1 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.0002864/0.6698, allocations: 142.9 kB / 0.6152 GB, free: 10.22 MB / 459.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008487/0.6707, allocations: 0.5382 MB / 0.6157 GB, free: 9.676 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.473e-05/0.6708, allocations: 63.23 kB / 0.6158 GB, free: 9.613 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009326/0.6717, allocations: 0.5918 MB / 0.6164 GB, free: 9.016 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.6717, allocations: 8 kB / 0.6164 GB, free: 9.008 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.6717, allocations: 3.953 kB / 0.6164 GB, free: 9.004 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.6718, allocations: 0 / 0.6164 GB, free: 9.004 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002296/0.6741, allocations: 1.393 MB / 0.6178 GB, free: 7.547 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.6741, allocations: 0 / 0.6178 GB, free: 7.547 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005867/0.6747, allocations: 131.8 kB / 0.6179 GB, free: 7.418 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.6747, allocations: 4 kB / 0.6179 GB, free: 7.414 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.401e-05/0.6747, allocations: 4 kB / 0.6179 GB, free: 7.41 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.083e-06/0.6747, allocations: 7.984 kB / 0.6179 GB, free: 7.402 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.6748, allocations: 0 / 0.6179 GB, free: 7.402 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001203/0.676, allocations: 1.006 MB / 0.6189 GB, free: 6.32 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002139/0.6762, allocations: 180.5 kB / 0.619 GB, free: 6.125 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.627e-05/0.6763, allocations: 8 kB / 0.6191 GB, free: 6.117 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/0.6766, allocations: 15.97 kB / 0.6191 GB, free: 6.102 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.315e-05/0.6766, allocations: 32.41 kB / 0.6191 GB, free: 6.07 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.628e-05/0.6767, allocations: 27.88 kB / 0.6191 GB, free: 6.043 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0003401/0.677, allocations: 318.9 kB / 0.6194 GB, free: 5.734 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.677, allocations: 0 / 0.6194 GB, free: 5.734 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.0007588/0.6778, allocations: 200 kB / 0.6196 GB, free: 5.539 MB / 459.1 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.001765/0.6796, allocations: 2.058 MB / 0.6216 GB, free: 3.406 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.001517/0.6811, allocations: 1.082 MB / 0.6227 GB, free: 2.281 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.6811, allocations: 0 / 0.6227 GB, free: 2.281 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003359/0.6815, allocations: 259.2 kB / 0.6229 GB, free: 2.027 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005922/0.6821, allocations: 114 kB / 0.623 GB, free: 1.918 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003047/0.6851, allocations: 1.748 MB / 0.6248 GB, free: 104 kB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007897/0.6859, allocations: 1.098 MB / 0.6258 GB, free: 14.98 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.0005983/0.6865, allocations: 209.3 kB / 0.626 GB, free: 14.77 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000412/0.687, allocations: 311.3 kB / 0.6263 GB, free: 14.46 MB / 475.1 MB Notification: Performance of SimCode: time 6.81e-07/0.687, allocations: 0 / 0.6263 GB, free: 14.46 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03737/0.7243, allocations: 14.04 MB / 0.64 GB, free: 436 kB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/0.7246, allocations: 138.8 kB / 0.6402 GB, free: 244 kB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.471/3.196, allocations: 3.938 kB / 0.6402 GB, free: 240 kB / 475.1 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