Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",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.001542/0.001542, allocations: 183.1 kB / 15.76 MB, free: 6.363 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.058/2.058, 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.001147/0.001147, allocations: 106.7 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2591/0.2591, allocations: 38.06 MB / 356.6 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004477/0.0004479, allocations: 16 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1094, allocations: 56.32 MB / 479.1 MB, free: 1.957 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4936/0.603, allocations: 101.1 MB / 0.5666 GB, free: 14.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003282/0.6034, allocations: 93.64 kB / 0.5667 GB, free: 14.18 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06856/0.672, allocations: 15.31 MB / 0.5817 GB, free: 1.035 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.672, allocations: 0 / 0.5817 GB, free: 1.035 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.257e-05/0.6721, allocations: 16 kB / 0.5817 GB, free: 1.02 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002493/0.6746, allocations: 0.8901 MB / 0.5825 GB, free: 128 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.6746, allocations: 8.031 kB / 0.5826 GB, free: 120 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001964/0.6749, allocations: 90.58 kB / 0.5826 GB, free: 48 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001991/0.6751, allocations: 75.16 kB / 0.5827 GB, free: 15.97 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00418/0.6793, allocations: 1.078 MB / 0.5838 GB, free: 15.02 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.261e-05/0.6793, allocations: 38.62 kB / 0.5838 GB, free: 15 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.6795, allocations: 45.62 kB / 0.5838 GB, free: 14.97 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.681, allocations: 0.6279 MB / 0.5845 GB, free: 14.48 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.681, allocations: 0 / 0.5845 GB, free: 14.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.025e-05/0.6811, allocations: 18.12 kB / 0.5845 GB, free: 14.47 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.321e-05/0.6811, allocations: 15.95 kB / 0.5845 GB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00133/0.6825, allocations: 0.512 MB / 0.585 GB, free: 14.1 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004949/0.6874, allocations: 2.24 MB / 0.5872 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001305/0.6888, allocations: 489.2 kB / 0.5876 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.6e-05/0.6888, allocations: 4.062 kB / 0.5876 GB, free: 11.78 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.774e-05/0.6889, allocations: 37.25 kB / 0.5877 GB, free: 11.74 MB / 394.7 MB Notification: Performance of pre-optimization done (n=45): time 2.956e-06/0.6889, allocations: 4 kB / 0.5877 GB, free: 11.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=47): time 0.005195/0.6941, allocations: 1.696 MB / 0.5893 GB, free: 10.32 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.863e-05/0.6942, allocations: 85.06 kB / 0.5894 GB, free: 10.21 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006502/0.6949, allocations: 369.2 kB / 0.5898 GB, free: 9.922 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.115e-05/0.6949, allocations: 31.83 kB / 0.5898 GB, free: 9.891 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002413/0.6952, allocations: 331.8 kB / 0.5901 GB, free: 9.629 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001871/0.6954, allocations: 164.4 kB / 0.5903 GB, free: 9.488 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.547e-05/0.6954, allocations: 9.688 kB / 0.5903 GB, free: 9.484 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.6956, allocations: 327.9 kB / 0.5906 GB, free: 9.164 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004658/0.6961, allocations: 182.7 kB / 0.5908 GB, free: 9.043 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005801/0.6967, allocations: 308.1 kB / 0.5911 GB, free: 8.762 MB / 394.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.003331/0.7, allocations: 0.7464 MB / 0.5918 GB, free: 8.156 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.7, allocations: 0 / 0.5918 GB, free: 8.156 MB / 394.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001763/0.7018, allocations: 0.6603 MB / 0.5924 GB, free: 7.66 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.7019, allocations: 8.469 kB / 0.5925 GB, free: 7.652 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.7019, allocations: 8 kB / 0.5925 GB, free: 7.645 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005905/0.7025, allocations: 136.4 kB / 0.5926 GB, free: 7.531 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008711/0.7034, allocations: 106.8 kB / 0.5927 GB, free: 7.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004054/0.7074, allocations: 2.314 MB / 0.595 GB, free: 5.336 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005554/0.708, allocations: 19.03 kB / 0.595 GB, free: 5.324 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.292e-05/0.7081, allocations: 23.31 kB / 0.595 GB, free: 5.309 MB / 394.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (55): * Single equations (assignments): 54 * 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: 1 {(3,88.9%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004751/0.7086, allocations: 227.7 kB / 0.5952 GB, free: 5.117 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.7087, allocations: 47.39 kB / 0.5953 GB, free: 5.07 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001756/0.7105, allocations: 0.6368 MB / 0.5959 GB, free: 4.617 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/0.7105, allocations: 4 kB / 0.5959 GB, free: 4.613 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.7105, allocations: 8 kB / 0.5959 GB, free: 4.605 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-06/0.7105, allocations: 0 / 0.5959 GB, free: 4.605 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003301/0.7138, allocations: 1.351 MB / 0.5972 GB, free: 3.465 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.7139, allocations: 0 / 0.5972 GB, free: 3.465 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006897/0.7146, allocations: 75.77 kB / 0.5973 GB, free: 3.395 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006248/0.7152, allocations: 132.6 kB / 0.5974 GB, free: 3.285 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.946e-05/0.7153, allocations: 15.55 kB / 0.5974 GB, free: 3.277 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004007/0.7193, allocations: 2.316 MB / 0.5997 GB, free: 1.184 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.7193, allocations: 0 / 0.5997 GB, free: 1.184 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002349/0.7217, allocations: 1.027 MB / 0.6007 GB, free: 348 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001965/0.7219, allocations: 127.6 kB / 0.6008 GB, free: 204 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.722, allocations: 18.22 kB / 0.6008 GB, free: 192 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004159/0.7225, allocations: 11.19 kB / 0.6008 GB, free: 188 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.7226, allocations: 47.03 kB / 0.6009 GB, free: 148 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-05/0.7226, allocations: 11.25 kB / 0.6009 GB, free: 140 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005557/0.7232, allocations: 293.1 kB / 0.6012 GB, free: 15.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.7232, allocations: 0 / 0.6012 GB, free: 15.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000944/0.7242, allocations: 149.4 kB / 0.6013 GB, free: 15.77 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * 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 simulation (42): * Single equations (assignments): 40 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002885/0.7271, allocations: 1.936 MB / 0.6032 GB, free: 14.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001702/0.7288, allocations: 0.6554 MB / 0.6038 GB, free: 13.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.7288, allocations: 0 / 0.6038 GB, free: 13.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.7299, allocations: 432.2 kB / 0.6043 GB, free: 13.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009641/0.7308, allocations: 112.9 kB / 0.6044 GB, free: 13.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009019/0.7399, allocations: 5.946 MB / 0.6102 GB, free: 7.539 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007557/0.7407, allocations: 0.9399 MB / 0.6111 GB, free: 6.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004168/0.7411, allocations: 199.8 kB / 0.6113 GB, free: 6.535 MB / 410.7 MB Notification: Performance of SimCode: time 1.072e-06/0.7411, allocations: 4 kB / 0.6113 GB, free: 6.531 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.815/3.556, allocations: 11.69 MB / 0.6227 GB, free: 10.94 MB / 426.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)