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.001025/0.001025, allocations: 180.5 kB / 16.38 MB, free: 5.766 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.214/1.214, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.0007659/0.0007663, allocations: 93.27 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1583/0.1583, allocations: 38.06 MB / 357.2 MB, free: 1.906 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000346/0.000346, allocations: 8 kB / 424.1 MB, free: 37.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.2363, allocations: 56.32 MB / 480.4 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1323/0.3686, allocations: 112.2 MB / 0.5787 GB, free: 6.188 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003035/0.3689, allocations: 95.95 kB / 0.5788 GB, free: 6.094 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07646/0.4454, allocations: 29.72 MB / 0.6078 GB, free: 8 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.757e-06/0.4455, allocations: 0 / 0.6078 GB, free: 8 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.245e-05/0.4455, allocations: 23.88 kB / 0.6079 GB, free: 7.977 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.001862/0.4474, allocations: 1.131 MB / 0.609 GB, free: 6.793 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.4475, allocations: 16.02 kB / 0.609 GB, free: 6.777 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001558/0.4476, allocations: 135.5 kB / 0.6091 GB, free: 6.637 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009441/0.4486, allocations: 190.6 kB / 0.6093 GB, free: 6.449 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00263/0.4512, allocations: 1.196 MB / 0.6105 GB, free: 5.207 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.157e-05/0.4513, allocations: 58 kB / 0.6105 GB, free: 5.152 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001694/0.4514, allocations: 91.83 kB / 0.6106 GB, free: 5.062 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.4529, allocations: 1.104 MB / 0.6117 GB, free: 3.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.483e-05/0.453, allocations: 4 kB / 0.6117 GB, free: 3.906 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.374e-05/0.453, allocations: 35.98 kB / 0.6117 GB, free: 3.871 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.923e-05/0.4531, allocations: 65.97 kB / 0.6118 GB, free: 3.809 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001234/0.4544, allocations: 0.882 MB / 0.6127 GB, free: 2.922 MB / 442.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.004662/0.459, allocations: 4.089 MB / 0.6166 GB, free: 14.62 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005289/0.4596, allocations: 414.2 kB / 0.617 GB, free: 14.18 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.364e-05/0.4596, allocations: 12.05 kB / 0.6171 GB, free: 14.17 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.4597, allocations: 38.5 kB / 0.6171 GB, free: 14.12 MB / 458.7 MB Notification: Performance of pre-optimization done (n=45): time 2.134e-06/0.4597, allocations: 0 / 0.6171 GB, free: 14.12 MB / 458.7 MB Notification: Performance of matching and sorting (n=52): time 0.003716/0.4634, allocations: 1.981 MB / 0.619 GB, free: 12.09 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.4634, allocations: 85.48 kB / 0.6191 GB, free: 11.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005163/0.464, allocations: 0.4943 MB / 0.6196 GB, free: 11.48 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.069e-05/0.464, allocations: 33.7 kB / 0.6196 GB, free: 11.45 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002967/0.4643, allocations: 474.5 kB / 0.6201 GB, free: 10.97 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.4645, allocations: 189.3 kB / 0.6203 GB, free: 10.79 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.436e-05/0.4645, allocations: 16 kB / 0.6203 GB, free: 10.77 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.4647, allocations: 378.7 kB / 0.6206 GB, free: 10.39 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003768/0.4651, allocations: 265.8 kB / 0.6209 GB, free: 10.13 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004987/0.4656, allocations: 0.4964 MB / 0.6214 GB, free: 9.531 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.002037/0.4676, allocations: 0.7016 MB / 0.6221 GB, free: 8.832 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.4676, allocations: 0 / 0.6221 GB, free: 8.832 MB / 458.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002141/0.4698, allocations: 1.162 MB / 0.6232 GB, free: 7.633 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.4698, allocations: 8 kB / 0.6232 GB, free: 7.625 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001556/0.4714, allocations: 0.8311 MB / 0.624 GB, free: 6.762 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005907/0.472, allocations: 211.3 kB / 0.6242 GB, free: 6.543 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005343/0.4725, allocations: 167.7 kB / 0.6244 GB, free: 6.379 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005472/0.478, allocations: 6.358 MB / 0.6306 GB, free: 15.48 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006342/0.4787, allocations: 43.88 kB / 0.6306 GB, free: 15.44 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-05/0.4787, allocations: 28 kB / 0.6306 GB, free: 15.41 MB / 474.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.0005543/0.4793, allocations: 317.5 kB / 0.6309 GB, free: 15.09 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.4794, allocations: 67.2 kB / 0.631 GB, free: 15.03 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009869/0.4804, allocations: 0.6395 MB / 0.6316 GB, free: 14.38 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.4804, allocations: 4 kB / 0.6316 GB, free: 14.37 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.4804, allocations: 3.938 kB / 0.6316 GB, free: 14.37 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.4804, allocations: 11.98 kB / 0.6317 GB, free: 14.36 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002429/0.4829, allocations: 1.526 MB / 0.6331 GB, free: 12.76 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.4829, allocations: 0 / 0.6331 GB, free: 12.76 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005595/0.4834, allocations: 123.8 kB / 0.6333 GB, free: 12.64 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/0.4835, allocations: 4 kB / 0.6333 GB, free: 12.63 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.14e-05/0.4835, allocations: 15.98 kB / 0.6333 GB, free: 12.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.4835, allocations: 4 kB / 0.6333 GB, free: 12.61 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4835, allocations: 7.984 kB / 0.6333 GB, free: 12.61 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.4847, allocations: 1.037 MB / 0.6343 GB, free: 11.48 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002827/0.485, allocations: 180.3 kB / 0.6345 GB, free: 11.29 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.683e-05/0.4851, allocations: 15.98 kB / 0.6345 GB, free: 11.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003058/0.4854, allocations: 15.98 kB / 0.6345 GB, free: 11.26 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.145e-05/0.4855, allocations: 44.53 kB / 0.6346 GB, free: 11.21 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.02e-05/0.4855, allocations: 12 kB / 0.6346 GB, free: 11.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004136/0.4859, allocations: 407 kB / 0.635 GB, free: 10.81 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4859, allocations: 0 / 0.635 GB, free: 10.81 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0007634/0.4867, allocations: 227.9 kB / 0.6352 GB, free: 10.59 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: 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.001741/0.4884, allocations: 2.099 MB / 0.6372 GB, free: 8.41 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001717/0.4902, allocations: 1.147 MB / 0.6383 GB, free: 7.211 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.4902, allocations: 0 / 0.6383 GB, free: 7.211 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003456/0.4905, allocations: 266.7 kB / 0.6386 GB, free: 6.953 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005536/0.4911, allocations: 122.9 kB / 0.6387 GB, free: 6.832 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1617/0.6528, allocations: 10.37 MB / 0.6488 GB, free: 132.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006231/0.6534, allocations: 1.093 MB / 0.6499 GB, free: 131.5 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0005819/0.654, allocations: 195.5 kB / 0.6501 GB, free: 131.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003709/0.6544, allocations: 318.9 kB / 0.6504 GB, free: 131.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6544, allocations: 0 / 0.6504 GB, free: 131.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03243/0.6868, allocations: 15.82 MB / 0.6658 GB, free: 130.8 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001486/0.687, allocations: 214.6 kB / 0.6661 GB, free: 130.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.167/2.854, allocations: 1.203 kB / 0.6661 GB, free: 130.6 MB / 474.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