Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001238/0.001238, allocations: 179.6 kB / 8.349 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.83/1.83, allocations: 194.4 MB / 203.1 MB, free: 13.02 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001655/0.001655, allocations: 112.7 kB / 248.1 MB, free: 20 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1726/0.1726, allocations: 37.94 MB / 330.9 MB, free: 2.633 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.614e-05/1.616e-05, allocations: 0 / 390.5 MB, free: 6.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3427, allocations: 53.22 MB / 443.7 MB, free: 17.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5385/0.8813, allocations: 115.5 MB / 0.5461 GB, free: 33.56 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002675/0.8816, allocations: 90.62 kB / 0.5462 GB, free: 33.56 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08488/0.9665, allocations: 34.49 MB / 0.5799 GB, free: 24.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.9666, allocations: 0 / 0.5799 GB, free: 24.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.902e-05/0.9667, allocations: 31.12 kB / 0.5799 GB, free: 24.03 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 267 * Number of variables: 267 Notification: Performance of Generate backend data structure: time 0.002928/0.9696, allocations: 1.302 MB / 0.5812 GB, free: 23.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.722e-05/0.9697, allocations: 9.312 kB / 0.5812 GB, free: 23.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005734/0.9702, allocations: 154.8 kB / 0.5813 GB, free: 23.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00266/0.9729, allocations: 1.199 MB / 0.5825 GB, free: 22.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.675e-05/0.973, allocations: 33.88 kB / 0.5825 GB, free: 22.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002432/0.9732, allocations: 80.55 kB / 0.5826 GB, free: 22.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001415/0.9746, allocations: 0.9105 MB / 0.5835 GB, free: 22.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.9763, allocations: 1.135 MB / 0.5846 GB, free: 22.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.36e-05/0.9763, allocations: 3.75 kB / 0.5846 GB, free: 22.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.319e-05/0.9764, allocations: 0 / 0.5846 GB, free: 22.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001179/0.9765, allocations: 74.89 kB / 0.5847 GB, free: 22 MB / 378.7 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.0008318498358936397 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005794/0.9823, allocations: 4.639 MB / 0.5892 GB, free: 19.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007774/0.9831, allocations: 0.6857 MB / 0.5899 GB, free: 19.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003521/0.9835, allocations: 309.2 kB / 0.5902 GB, free: 18.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.933e-05/0.9835, allocations: 8.172 kB / 0.5902 GB, free: 18.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.9836, allocations: 49.86 kB / 0.5902 GB, free: 18.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 3.456e-06/0.9836, allocations: 0 / 0.5902 GB, free: 18.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=71): time 0.0038/0.9874, allocations: 2.451 MB / 0.5926 GB, free: 17.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.9875, allocations: 114.5 kB / 0.5927 GB, free: 17.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000589/0.9881, allocations: 0.5021 MB / 0.5932 GB, free: 17.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.304e-05/0.9881, allocations: 25.7 kB / 0.5933 GB, free: 17.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002612/0.9884, allocations: 0.5574 MB / 0.5938 GB, free: 17.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001632/0.9886, allocations: 236.2 kB / 0.594 GB, free: 16.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.509e-05/0.9886, allocations: 0 / 0.594 GB, free: 16.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.9887, allocations: 397.6 kB / 0.5944 GB, free: 16.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003248/0.989, allocations: 253.8 kB / 0.5947 GB, free: 16.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004361/0.9895, allocations: 0.4911 MB / 0.5951 GB, free: 16.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004165/0.9899, allocations: 350.8 kB / 0.5955 GB, free: 16.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.9899, allocations: 3.844 kB / 0.5955 GB, free: 16.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002098/0.992, allocations: 1.144 MB / 0.5966 GB, free: 15.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008167/0.9929, allocations: 3.049 MB / 0.5996 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.9929, allocations: 9.625 kB / 0.5996 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001334/0.9942, allocations: 390.8 kB / 0.5999 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006141/0.9949, allocations: 172.8 kB / 0.6001 GB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/0.9963, allocations: 1.161 MB / 0.6012 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006412/0.9969, allocations: 19.89 kB / 0.6013 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.181e-05/0.997, allocations: 41.73 kB / 0.6013 GB, free: 11.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.997, allocations: 4 kB / 0.6013 GB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001942/0.999, allocations: 1.009 MB / 0.6023 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.999, allocations: 16.27 kB / 0.6023 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001122/1, allocations: 378.1 kB / 0.6027 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006855/1.001, allocations: 165 kB / 0.6028 GB, free: 10.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00598/1.007, allocations: 4.433 MB / 0.6072 GB, free: 5.879 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007657/1.008, allocations: 19.89 kB / 0.6072 GB, free: 5.859 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.552e-05/1.008, allocations: 36 kB / 0.6072 GB, free: 5.824 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: PMgen.term.i[1]:VARIABLE(flow=true unit = "A" nominal = 1.0 ) "current vector" type: Real [2] PMgen.generator.psi_s[1]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real PMgen.inverter.vDC1:VARIABLE(unit = "V" nominal = 1000.0 protected = true ) type: Real PMgen.generator.i_dq[2]:VARIABLE(unit = "A" nominal = 1.0 protected = true ) "current demand {i_d, i_q} pu" type: Real [2] $DER.zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (80): * Single equations (assignments): 79 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {7 25} Notification: Performance of prepare postOptimizeDAE: time 0.0003389/1.008, allocations: 146.6 kB / 0.6074 GB, free: 5.672 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001088/1.009, allocations: 0.6955 MB / 0.608 GB, free: 4.949 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/1.009, allocations: 90.98 kB / 0.6081 GB, free: 4.859 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001108/1.01, allocations: 0.7805 MB / 0.6089 GB, free: 4.047 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/1.01, allocations: 8 kB / 0.6089 GB, free: 4.039 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/1.01, allocations: 0 / 0.6089 GB, free: 4.039 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/1.01, allocations: 7.984 kB / 0.6089 GB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00248/1.013, allocations: 1.61 MB / 0.6105 GB, free: 2.391 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/1.013, allocations: 0 / 0.6105 GB, free: 2.391 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007655/1.014, allocations: 163.8 kB / 0.6106 GB, free: 2.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.109e-05/1.014, allocations: 8.031 kB / 0.6106 GB, free: 2.223 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.631e-05/1.014, allocations: 8 kB / 0.6106 GB, free: 2.215 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/1.014, allocations: 4 kB / 0.6106 GB, free: 2.211 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/1.014, allocations: 0 / 0.6106 GB, free: 2.211 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/1.015, allocations: 1.193 MB / 0.6118 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000274/1.015, allocations: 211.9 kB / 0.612 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.107e-05/1.016, allocations: 7.891 kB / 0.612 GB, free: 0.7461 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003762/1.016, allocations: 11.98 kB / 0.612 GB, free: 0.7344 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.258e-05/1.016, allocations: 40.72 kB / 0.6121 GB, free: 0.6953 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-05/1.016, allocations: 20 kB / 0.6121 GB, free: 0.6758 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004348/1.016, allocations: 395.1 kB / 0.6125 GB, free: 300 kB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.016, allocations: 0 / 0.6125 GB, free: 300 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.001617/1.018, allocations: 372 kB / 0.6128 GB, free: 15.93 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.generator.phi_el,PMgen.generator.w_el,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * 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.002509/1.021, allocations: 2.026 MB / 0.6148 GB, free: 13.86 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003687/1.024, allocations: 1.5 MB / 0.6163 GB, free: 12.35 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/1.024, allocations: 0 / 0.6163 GB, free: 12.35 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005291/1.025, allocations: 318.8 kB / 0.6166 GB, free: 12.04 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/1.026, allocations: 168.7 kB / 0.6167 GB, free: 11.88 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004625/1.031, allocations: 2.121 MB / 0.6188 GB, free: 9.703 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/1.032, allocations: 1.203 MB / 0.62 GB, free: 8.473 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001145/1.033, allocations: 286.6 kB / 0.6202 GB, free: 8.188 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005623/1.033, allocations: 407.2 kB / 0.6206 GB, free: 7.793 MB / 394.7 MB Notification: Performance of SimCode: time 1.123e-06/1.033, allocations: 0 / 0.6206 GB, free: 7.793 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05662/1.09, allocations: 22.04 MB / 0.6422 GB, free: 1.711 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002292/1.09, allocations: 140.2 kB / 0.6423 GB, free: 1.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.712/3.803, allocations: 0 / 0.6423 GB, free: 1.52 MB / 410.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)