Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001082/0.001082, allocations: 178.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.2+maint.om/package.mo): time 1.376/1.376, allocations: 194.5 MB / 211.6 MB, free: 3.062 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.001626/0.001626, allocations: 108.3 kB / 256.9 MB, free: 4.367 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1669/0.1669, allocations: 38 MB / 340.1 MB, free: 1.359 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000365/0.0003653, allocations: 12 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08201/0.0824, allocations: 53.24 MB / 457.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3091/0.3915, allocations: 96.01 MB / 0.5402 GB, free: 14.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.3919, allocations: 96.39 kB / 0.5403 GB, free: 14.81 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04292/0.4348, allocations: 15.28 MB / 0.5552 GB, free: 1.691 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.336e-06/0.4348, allocations: 0 / 0.5552 GB, free: 1.691 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.525e-05/0.4349, allocations: 15.94 kB / 0.5552 GB, free: 1.676 MB / 362.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.001641/0.4365, allocations: 0.8924 MB / 0.5561 GB, free: 0.7773 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.4366, allocations: 16.02 kB / 0.5561 GB, free: 0.7617 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001095/0.4367, allocations: 90.77 kB / 0.5562 GB, free: 0.6953 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.4368, allocations: 63.25 kB / 0.5562 GB, free: 0.6328 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00274/0.4396, allocations: 1.08 MB / 0.5573 GB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.047e-05/0.4396, allocations: 35.62 kB / 0.5573 GB, free: 15.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.026e-05/0.4397, allocations: 49.88 kB / 0.5574 GB, free: 15.63 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009283/0.4407, allocations: 0.634 MB / 0.558 GB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.4407, allocations: 0 / 0.558 GB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.852e-05/0.4407, allocations: 18.44 kB / 0.558 GB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.4408, allocations: 12 kB / 0.558 GB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007253/0.4415, allocations: 0.5101 MB / 0.5585 GB, free: 14.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003154/0.4447, allocations: 2.241 MB / 0.5607 GB, free: 12.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008629/0.4456, allocations: 473.9 kB / 0.5611 GB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.4456, allocations: 8.062 kB / 0.5612 GB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.429e-05/0.4456, allocations: 42.31 kB / 0.5612 GB, free: 12.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.385e-06/0.4457, allocations: 0 / 0.5612 GB, free: 12.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.003253/0.4489, allocations: 1.706 MB / 0.5629 GB, free: 10.97 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.449, allocations: 81.11 kB / 0.5629 GB, free: 10.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004005/0.4494, allocations: 367.8 kB / 0.5633 GB, free: 10.58 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.345e-05/0.4494, allocations: 33.77 kB / 0.5633 GB, free: 10.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002012/0.4496, allocations: 296.5 kB / 0.5636 GB, free: 10.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.4498, allocations: 166.4 kB / 0.5638 GB, free: 10.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.23e-05/0.4498, allocations: 11.06 kB / 0.5638 GB, free: 10.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.4499, allocations: 362.2 kB / 0.5641 GB, free: 9.844 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000248/0.4502, allocations: 176.5 kB / 0.5643 GB, free: 9.723 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003282/0.4505, allocations: 304.5 kB / 0.5646 GB, free: 9.445 MB / 378.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.001852/0.4524, allocations: 0.7432 MB / 0.5653 GB, free: 8.844 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4524, allocations: 0 / 0.5653 GB, free: 8.844 MB / 378.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001052/0.4535, allocations: 0.6902 MB / 0.566 GB, free: 8.316 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.4535, allocations: 4 kB / 0.566 GB, free: 8.312 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.4535, allocations: 4 kB / 0.566 GB, free: 8.309 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003454/0.4539, allocations: 122.7 kB / 0.5661 GB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004525/0.4543, allocations: 111.4 kB / 0.5662 GB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002489/0.4568, allocations: 2.32 MB / 0.5685 GB, free: 6.004 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003633/0.4572, allocations: 21.66 kB / 0.5685 GB, free: 5.992 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.525e-05/0.4573, allocations: 19.38 kB / 0.5685 GB, free: 5.977 MB / 378.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.0003814/0.4577, allocations: 234.8 kB / 0.5687 GB, free: 5.777 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.779e-05/0.4578, allocations: 51.42 kB / 0.5688 GB, free: 5.727 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.4588, allocations: 0.6299 MB / 0.5694 GB, free: 5.277 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.4588, allocations: 7.984 kB / 0.5694 GB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.4588, allocations: 4 kB / 0.5694 GB, free: 5.266 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.4588, allocations: 3.953 kB / 0.5694 GB, free: 5.262 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002013/0.4609, allocations: 1.34 MB / 0.5707 GB, free: 4.137 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.4609, allocations: 7.953 kB / 0.5707 GB, free: 4.129 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003673/0.4613, allocations: 75.83 kB / 0.5708 GB, free: 4.059 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003596/0.4616, allocations: 136.3 kB / 0.5709 GB, free: 3.945 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.371e-05/0.4617, allocations: 15.86 kB / 0.5709 GB, free: 3.938 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002315/0.464, allocations: 2.315 MB / 0.5732 GB, free: 1.852 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.464, allocations: 4 kB / 0.5732 GB, free: 1.848 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001318/0.4653, allocations: 1.029 MB / 0.5742 GB, free: 1.004 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/0.4655, allocations: 120.5 kB / 0.5743 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.554e-05/0.4656, allocations: 11.56 kB / 0.5743 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.4658, allocations: 19.73 kB / 0.5744 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.263e-05/0.4659, allocations: 40.25 kB / 0.5744 GB, free: 0.8164 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.963e-05/0.4659, allocations: 19.75 kB / 0.5744 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003186/0.4663, allocations: 284.8 kB / 0.5747 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4663, allocations: 0 / 0.5747 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006554/0.4669, allocations: 157.6 kB / 0.5748 GB, free: 448 kB / 378.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.001726/0.4687, allocations: 1.927 MB / 0.5767 GB, free: 14.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001047/0.4697, allocations: 0.646 MB / 0.5774 GB, free: 14.18 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.4698, allocations: 0 / 0.5774 GB, free: 14.18 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005757/0.4703, allocations: 429.9 kB / 0.5778 GB, free: 13.83 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005864/0.4709, allocations: 128.5 kB / 0.5779 GB, free: 13.73 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005487/0.4764, allocations: 5.887 MB / 0.5836 GB, free: 8.266 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005185/0.477, allocations: 0.9532 MB / 0.5846 GB, free: 7.305 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003772/0.4774, allocations: 108.7 kB / 0.5847 GB, free: 7.195 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002433/0.4776, allocations: 192.6 kB / 0.5849 GB, free: 7.145 MB / 394.7 MB Notification: Performance of SimCode: time 7.61e-07/0.4776, allocations: 0 / 0.5849 GB, free: 7.145 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02703/0.5047, allocations: 11.21 MB / 0.5958 GB, free: 11.95 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002172/0.5049, allocations: 214.9 kB / 0.596 GB, free: 11.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.136/2.641, allocations: 7.938 kB / 0.596 GB, free: 11.69 MB / 410.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)