Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.002283/0.002284, allocations: 180.3 kB / 8.353 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.601/1.601, allocations: 194.4 MB / 203.1 MB, free: 12.96 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.001657/0.001657, allocations: 117.5 kB / 248.1 MB, free: 15.95 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2312/0.2312, allocations: 37.93 MB / 330.9 MB, free: 2.633 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.559e-05/2.549e-05, allocations: 4 kB / 390.5 MB, free: 6.984 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3923/0.3924, allocations: 53.22 MB / 443.7 MB, free: 17.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4539/0.8463, allocations: 105.4 MB / 0.5362 GB, free: 37.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003503/0.8467, allocations: 92.25 kB / 0.5363 GB, free: 37.39 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05759/0.9043, allocations: 21.64 MB / 0.5574 GB, free: 34.4 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.9044, allocations: 4 kB / 0.5574 GB, free: 34.4 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.759e-05/0.9044, allocations: 19.59 kB / 0.5574 GB, free: 34.39 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.001859/0.9063, allocations: 0.9495 MB / 0.5584 GB, free: 33.81 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.9064, allocations: 7.812 kB / 0.5584 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006652/0.907, allocations: 124.5 kB / 0.5585 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002562/0.9096, allocations: 1.138 MB / 0.5596 GB, free: 33.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.9097, allocations: 23.22 kB / 0.5596 GB, free: 33.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.763e-05/0.9098, allocations: 42.23 kB / 0.5597 GB, free: 33.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009901/0.9108, allocations: 0.7413 MB / 0.5604 GB, free: 33.4 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.9119, allocations: 0.8904 MB / 0.5612 GB, free: 33.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.9119, allocations: 3.875 kB / 0.5613 GB, free: 33.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.171e-05/0.912, allocations: 0 / 0.5613 GB, free: 33.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001195/0.9121, allocations: 67.16 kB / 0.5613 GB, free: 33.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004125/0.9162, allocations: 3.15 MB / 0.5644 GB, free: 32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008844/0.9171, allocations: 0.6998 MB / 0.5651 GB, free: 31.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004774/0.9176, allocations: 449.4 kB / 0.5655 GB, free: 31.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.916e-05/0.9177, allocations: 13.34 kB / 0.5655 GB, free: 31.92 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.9177, allocations: 38.5 kB / 0.5656 GB, free: 31.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=77): time 2.585e-06/0.9177, allocations: 0 / 0.5656 GB, free: 31.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=79): time 0.004445/0.9222, allocations: 2.479 MB / 0.568 GB, free: 31.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.39e-05/0.9223, allocations: 85.52 kB / 0.5681 GB, free: 31.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003348/0.9226, allocations: 325.9 kB / 0.5684 GB, free: 30.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.655e-05/0.9227, allocations: 33.42 kB / 0.5684 GB, free: 30.92 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001585/0.9228, allocations: 352.4 kB / 0.5687 GB, free: 30.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.923, allocations: 260.8 kB / 0.569 GB, free: 30.49 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.425e-05/0.923, allocations: 0 / 0.569 GB, free: 30.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.9232, allocations: 373.1 kB / 0.5693 GB, free: 30.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004026/0.9236, allocations: 352.3 kB / 0.5697 GB, free: 30.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004695/0.924, allocations: 0.5129 MB / 0.5702 GB, free: 29.9 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.008467/0.9325, allocations: 2.915 MB / 0.573 GB, free: 28.72 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.9325, allocations: 0 / 0.573 GB, free: 28.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001769/0.9343, allocations: 1.199 MB / 0.5742 GB, free: 28.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.9343, allocations: 11.8 kB / 0.5742 GB, free: 28.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.9344, allocations: 7.875 kB / 0.5742 GB, free: 28.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001469/0.9345, allocations: 39.5 kB / 0.5743 GB, free: 28.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000754/0.9353, allocations: 197.5 kB / 0.5744 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008568/0.9362, allocations: 1.331 MB / 0.5757 GB, free: 27.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000501/0.9367, allocations: 27.23 kB / 0.5758 GB, free: 27.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.045e-05/0.9367, allocations: 30.42 kB / 0.5758 GB, free: 27.02 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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (93): * Single equations (assignments): 89 * Array equations: 3 * 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 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001579/0.9369, allocations: 132.4 kB / 0.5759 GB, free: 26.9 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001515/0.9384, allocations: 1.051 MB / 0.5769 GB, free: 26.56 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.173e-05/0.9385, allocations: 54.19 kB / 0.577 GB, free: 26.53 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001673/0.9402, allocations: 1.149 MB / 0.5781 GB, free: 26.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.798e-05/0.9403, allocations: 23.52 kB / 0.5781 GB, free: 26.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.9403, allocations: 0 / 0.5781 GB, free: 26.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.9403, allocations: 3.984 kB / 0.5781 GB, free: 26.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003037/0.9434, allocations: 2.075 MB / 0.5802 GB, free: 25.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.762e-06/0.9434, allocations: 3.906 kB / 0.5802 GB, free: 25.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006679/0.9441, allocations: 166.1 kB / 0.5803 GB, free: 25.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.873e-05/0.9442, allocations: 34.62 kB / 0.5804 GB, free: 25.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.949e-05/0.9442, allocations: 25.78 kB / 0.5804 GB, free: 25.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006922/0.945, allocations: 1.323 MB / 0.5817 GB, free: 23.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.945, allocations: 7.844 kB / 0.5817 GB, free: 23.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001977/0.947, allocations: 1.899 MB / 0.5835 GB, free: 22.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000165/0.9471, allocations: 135.2 kB / 0.5837 GB, free: 22.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.444e-05/0.9472, allocations: 11.8 kB / 0.5837 GB, free: 22.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003607/0.9476, allocations: 31.45 kB / 0.5837 GB, free: 22.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.584e-05/0.9477, allocations: 58.67 kB / 0.5838 GB, free: 22.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.519e-05/0.9478, allocations: 26.03 kB / 0.5838 GB, free: 22.74 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002314/0.948, allocations: 257.4 kB / 0.584 GB, free: 22.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.948, allocations: 0 / 0.584 GB, free: 22.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008057/0.9488, allocations: 180.4 kB / 0.5842 GB, free: 22.61 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 71 * Array equations: 3 * 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 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002624/0.9514, allocations: 3.795 MB / 0.5879 GB, free: 19.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001243/0.9527, allocations: 0.955 MB / 0.5889 GB, free: 19.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.9527, allocations: 5.156 kB / 0.5889 GB, free: 19.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005528/0.9533, allocations: 0.5284 MB / 0.5894 GB, free: 19.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006341/0.9539, allocations: 117.3 kB / 0.5895 GB, free: 19.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00267/0.9566, allocations: 1.835 MB / 0.5913 GB, free: 18.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004249/0.957, allocations: 1.029 MB / 0.5923 GB, free: 17.56 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005742/0.9576, allocations: 203.6 kB / 0.5925 GB, free: 17.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003416/0.958, allocations: 271.6 kB / 0.5927 GB, free: 17.44 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.958, allocations: 0 / 0.5927 GB, free: 17.44 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03359/0.9916, allocations: 13.21 MB / 0.6056 GB, free: 7.754 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001571/0.9918, allocations: 137.2 kB / 0.6058 GB, free: 7.566 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.415/3.407, allocations: 4.031 kB / 0.6058 GB, free: 7.562 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)