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.001329/0.001329, allocations: 179.5 kB / 16.38 MB, free: 5.762 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.308/1.308, allocations: 194.5 MB / 211.6 MB, free: 3.051 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.00168/0.00168, allocations: 113 kB / 256.9 MB, free: 4.355 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1661/0.1661, allocations: 38 MB / 340.1 MB, free: 1.367 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003572/0.0003572, allocations: 12 kB / 403.9 MB, free: 68.72 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08776/0.08813, allocations: 53.23 MB / 457.1 MB, free: 15.48 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3354/0.4235, allocations: 106.1 MB / 0.55 GB, free: 5.441 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/0.4238, allocations: 105.6 kB / 0.5501 GB, free: 5.383 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06185/0.4857, allocations: 21.85 MB / 0.5715 GB, free: 2.605 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4857, allocations: 0 / 0.5715 GB, free: 2.605 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.254e-05/0.4858, allocations: 16 kB / 0.5715 GB, free: 2.59 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.002842/0.4887, allocations: 1.033 MB / 0.5725 GB, free: 1.562 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.4887, allocations: 12.02 kB / 0.5725 GB, free: 1.551 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003589/0.4891, allocations: 117.1 kB / 0.5726 GB, free: 1.465 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008625/0.49, allocations: 130.7 kB / 0.5727 GB, free: 1.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003368/0.4934, allocations: 1.155 MB / 0.5739 GB, free: 340 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.007e-05/0.4934, allocations: 48.56 kB / 0.5739 GB, free: 308 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002/0.4936, allocations: 67.3 kB / 0.574 GB, free: 260 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00173/0.4954, allocations: 0.9887 MB / 0.5749 GB, free: 15.51 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.641e-05/0.4954, allocations: 7.906 kB / 0.575 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.518e-05/0.4955, allocations: 24 kB / 0.575 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001525/0.4957, allocations: 72.38 kB / 0.575 GB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001493/0.4972, allocations: 0.9358 MB / 0.576 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005299/0.5025, allocations: 3.214 MB / 0.5791 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.5036, allocations: 0.7026 MB / 0.5798 GB, free: 11.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.629e-05/0.5037, allocations: 12.19 kB / 0.5798 GB, free: 11.51 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.439e-05/0.5038, allocations: 43 kB / 0.5798 GB, free: 11.46 MB / 394.7 MB Notification: Performance of pre-optimization done (n=77): time 3.607e-06/0.5038, allocations: 0 / 0.5798 GB, free: 11.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=79): time 0.004129/0.5079, allocations: 2.773 MB / 0.5825 GB, free: 9.148 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.241e-05/0.508, allocations: 89.7 kB / 0.5826 GB, free: 9.043 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004848/0.5085, allocations: 372.5 kB / 0.583 GB, free: 8.746 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.601e-05/0.5086, allocations: 40.14 kB / 0.583 GB, free: 8.707 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002091/0.5088, allocations: 359.9 kB / 0.5834 GB, free: 8.434 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002073/0.509, allocations: 266.3 kB / 0.5836 GB, free: 8.203 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.758e-05/0.509, allocations: 13.94 kB / 0.5836 GB, free: 8.199 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.5092, allocations: 377.1 kB / 0.584 GB, free: 7.852 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004877/0.5097, allocations: 351.4 kB / 0.5843 GB, free: 7.617 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000612/0.5103, allocations: 0.5148 MB / 0.5848 GB, free: 7.168 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.008432/0.5187, allocations: 2.722 MB / 0.5875 GB, free: 4.734 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.5188, allocations: 0 / 0.5875 GB, free: 4.734 MB / 394.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00173/0.5205, allocations: 1.108 MB / 0.5886 GB, free: 3.879 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.5205, allocations: 12 kB / 0.5886 GB, free: 3.867 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.5206, allocations: 4 kB / 0.5886 GB, free: 3.863 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001397/0.5207, allocations: 30.47 kB / 0.5886 GB, free: 3.836 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008291/0.5216, allocations: 197.7 kB / 0.5888 GB, free: 3.648 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001155/0.5227, allocations: 1.342 MB / 0.5901 GB, free: 2.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005372/0.5233, allocations: 52.25 kB / 0.5902 GB, free: 2.191 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.223e-05/0.5234, allocations: 29.8 kB / 0.5902 GB, free: 2.168 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[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 90 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004791/0.5239, allocations: 273.8 kB / 0.5905 GB, free: 1.949 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.524, allocations: 63.2 kB / 0.5905 GB, free: 1.887 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001525/0.5255, allocations: 1.005 MB / 0.5915 GB, free: 1.16 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.31e-05/0.5256, allocations: 19.98 kB / 0.5915 GB, free: 1.141 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.5256, allocations: 4 kB / 0.5915 GB, free: 1.137 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.5256, allocations: 7.938 kB / 0.5915 GB, free: 1.129 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00351/0.5291, allocations: 2.077 MB / 0.5936 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/0.5292, allocations: 8 kB / 0.5936 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007494/0.5299, allocations: 170.9 kB / 0.5937 GB, free: 15.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001008/0.53, allocations: 28.72 kB / 0.5938 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.06e-05/0.5301, allocations: 25.86 kB / 0.5938 GB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00103/0.5311, allocations: 1.317 MB / 0.5951 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.165e-06/0.5312, allocations: 16 kB / 0.5951 GB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002233/0.5334, allocations: 1.822 MB / 0.5969 GB, free: 11.78 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001881/0.5336, allocations: 144.3 kB / 0.597 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000112/0.5337, allocations: 19.98 kB / 0.597 GB, free: 11.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004122/0.5341, allocations: 43.89 kB / 0.5971 GB, free: 11.56 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.5343, allocations: 64.39 kB / 0.5971 GB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-05/0.5343, allocations: 28.11 kB / 0.5971 GB, free: 11.47 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003695/0.5347, allocations: 287.1 kB / 0.5974 GB, free: 11.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5347, allocations: 0 / 0.5974 GB, free: 11.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007941/0.5355, allocations: 203.9 kB / 0.5976 GB, free: 10.99 MB / 410.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 72 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003194/0.5387, allocations: 3.748 MB / 0.6013 GB, free: 7.062 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001577/0.5403, allocations: 0.9773 MB / 0.6022 GB, free: 6.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.5403, allocations: 4 kB / 0.6022 GB, free: 6.066 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007356/0.5411, allocations: 0.5468 MB / 0.6028 GB, free: 5.508 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000697/0.5418, allocations: 125.9 kB / 0.6029 GB, free: 5.383 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008966/0.5508, allocations: 8.22 MB / 0.6109 GB, free: 12.94 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006904/0.5515, allocations: 1.037 MB / 0.6119 GB, free: 11.88 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006624/0.5522, allocations: 209.3 kB / 0.6121 GB, free: 11.67 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004036/0.5526, allocations: 267.3 kB / 0.6124 GB, free: 11.41 MB / 426.7 MB Notification: Performance of SimCode: time 6.82e-07/0.5526, allocations: 0 / 0.6124 GB, free: 11.41 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03003/0.5826, allocations: 13.93 MB / 0.626 GB, free: 13.48 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002019/0.5829, allocations: 215.1 kB / 0.6262 GB, free: 13.22 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.232/2.815, allocations: 3.938 kB / 0.6262 GB, free: 13.22 MB / 442.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)