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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008801/0.0008801, allocations: 91.3 kB / 16.31 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 181.1 kB / 17.21 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.661/1.661, allocations: 205.4 MB / 223.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3609/0.3609, allocations: 38.07 MB / 309.7 MB, free: 8.801 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005592/0.0005594, allocations: 14.19 kB / 376.6 MB, free: 15.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1201, allocations: 56.34 MB / 433 MB, free: 6.609 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007292/0.1274, allocations: 6.52 MB / 439.5 MB, free: 64 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003495/0.1309, allocations: 1.758 MB / 441.2 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009734/0.1319, allocations: 51.62 kB / 441.3 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007033/0.1327, allocations: 158.9 kB / 441.4 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001324/0.134, allocations: 441.7 kB / 441.9 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007628/0.1348, allocations: 227.6 kB / 442.1 MB, free: 13.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001264/0.1361, allocations: 1.102 MB / 443.2 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003764/0.1365, allocations: 188.3 kB / 443.4 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008011/0.1373, allocations: 338.4 kB / 443.7 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001042/0.1384, allocations: 458.5 kB / 444.2 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001735/0.1385, allocations: 28 kB / 444.2 MB, free: 11.33 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002666/0.1388, allocations: 24 kB / 444.2 MB, free: 11.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003601/0.1392, allocations: 239.3 kB / 444.4 MB, free: 11.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003199/0.1395, allocations: 133.4 kB / 444.6 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007004/0.1402, allocations: 0.4948 MB / 445.1 MB, free: 10.44 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1402, allocations: 0 / 445.1 MB, free: 10.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.657e-06/0.1403, allocations: 0 / 445.1 MB, free: 10.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.598e-05/0.1403, allocations: 3.938 kB / 445.1 MB, free: 10.43 MB / 382.1 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.001808/0.1421, allocations: 0.8512 MB / 445.9 MB, free: 9.527 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.1422, allocations: 8.031 kB / 445.9 MB, free: 9.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001673/0.1423, allocations: 94.52 kB / 446 MB, free: 9.418 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.1425, allocations: 67.16 kB / 446.1 MB, free: 9.352 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009616/0.1434, allocations: 0.5014 MB / 446.6 MB, free: 8.809 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.353e-05/0.1435, allocations: 37 kB / 446.6 MB, free: 8.773 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.726e-05/0.1436, allocations: 48 kB / 446.7 MB, free: 8.727 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000953/0.1445, allocations: 0.6249 MB / 447.3 MB, free: 8.066 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.1446, allocations: 7.891 kB / 447.3 MB, free: 8.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.651e-05/0.1446, allocations: 24 kB / 447.3 MB, free: 8.035 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.898e-05/0.1447, allocations: 32.97 kB / 447.4 MB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000721/0.1455, allocations: 0.5035 MB / 447.9 MB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002827/0.1483, allocations: 2.23 MB / 450.1 MB, free: 5.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007741/0.1491, allocations: 0.4893 MB / 450.6 MB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005418/0.1496, allocations: 341.6 kB / 450.9 MB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.1497, allocations: 4 kB / 450.9 MB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/0.1497, allocations: 42.5 kB / 451 MB, free: 4.277 MB / 382.1 MB Notification: Performance of pre-optimization done (n=45): time 2.474e-06/0.1497, allocations: 0 / 451 MB, free: 4.277 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.003144/0.1529, allocations: 1.769 MB / 452.7 MB, free: 2.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.862e-05/0.1529, allocations: 85.11 kB / 452.8 MB, free: 2.328 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004044/0.1533, allocations: 413.9 kB / 453.2 MB, free: 1.918 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/0.1534, allocations: 29.7 kB / 453.2 MB, free: 1.883 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001796/0.1536, allocations: 304.3 kB / 453.5 MB, free: 1.578 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.1537, allocations: 153.8 kB / 453.7 MB, free: 1.426 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.515e-05/0.1537, allocations: 16.03 kB / 453.7 MB, free: 1.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1539, allocations: 362.8 kB / 454.1 MB, free: 1.047 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002715/0.1541, allocations: 181 kB / 454.2 MB, free: 0.8711 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003331/0.1545, allocations: 311.6 kB / 454.5 MB, free: 0.5195 MB / 382.1 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.2113/0.3658, allocations: 0.7617 MB / 455.3 MB, free: 51.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.3658, allocations: 0.5 kB / 455.3 MB, free: 51.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001157/0.367, allocations: 0.7092 MB / 456 MB, free: 51.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.367, allocations: 8.688 kB / 456 MB, free: 51.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.138e-06/0.3671, allocations: 4.219 kB / 456 MB, free: 51.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003772/0.3674, allocations: 139.4 kB / 456.2 MB, free: 51.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003987/0.3678, allocations: 113.4 kB / 456.3 MB, free: 51.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002258/0.3701, allocations: 2.367 MB / 458.6 MB, free: 49.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003203/0.3705, allocations: 23.33 kB / 458.7 MB, free: 49.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.068e-05/0.3705, allocations: 26.56 kB / 458.7 MB, free: 49.72 MB / 382.1 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 (54): * Single equations (assignments): 53 * 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,77.8%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002954/0.3708, allocations: 220.6 kB / 458.9 MB, free: 49.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.192e-05/0.3709, allocations: 52.22 kB / 459 MB, free: 49.6 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009465/0.3718, allocations: 0.6582 MB / 459.6 MB, free: 49.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.3718, allocations: 6.156 kB / 459.6 MB, free: 49.53 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.319e-06/0.3719, allocations: 3.062 kB / 459.6 MB, free: 49.53 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.3719, allocations: 3.562 kB / 459.6 MB, free: 49.53 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001756/0.3736, allocations: 1.381 MB / 461 MB, free: 49.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.3736, allocations: 5 kB / 461 MB, free: 49.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003032/0.374, allocations: 73.55 kB / 461.1 MB, free: 49.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003395/0.3743, allocations: 145.2 kB / 461.2 MB, free: 49.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.333e-05/0.3743, allocations: 17.02 kB / 461.2 MB, free: 49.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002032/0.3764, allocations: 2.375 MB / 463.6 MB, free: 47.74 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3764, allocations: 0 / 463.6 MB, free: 47.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001335/0.3777, allocations: 0.9782 MB / 464.6 MB, free: 47.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.427e-05/0.3778, allocations: 123.3 kB / 464.7 MB, free: 47.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.389e-05/0.3779, allocations: 17.45 kB / 464.7 MB, free: 47.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.3781, allocations: 15.7 kB / 464.8 MB, free: 47.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.568e-05/0.3782, allocations: 39.41 kB / 464.8 MB, free: 47.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.175e-05/0.3783, allocations: 20.05 kB / 464.8 MB, free: 47.37 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000278/0.3785, allocations: 285.8 kB / 465.1 MB, free: 47.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3786, allocations: 2.844 kB / 465.1 MB, free: 47.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006065/0.3792, allocations: 149.5 kB / 465.2 MB, free: 47.29 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (41): * Single equations (assignments): 39 * 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,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001294/0.3805, allocations: 1.527 MB / 466.8 MB, free: 46.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009329/0.3814, allocations: 0.6584 MB / 467.4 MB, free: 46.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3814, allocations: 0 / 467.4 MB, free: 46.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005107/0.3819, allocations: 434.4 kB / 467.8 MB, free: 45.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006694/0.3826, allocations: 126.5 kB / 468 MB, free: 45.81 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004176/0.3868, allocations: 3.689 MB / 471.7 MB, free: 43.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/0.3872, allocations: 0.9283 MB / 472.6 MB, free: 43.19 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003196/0.3875, allocations: 102.6 kB / 472.7 MB, free: 43.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002107/0.3877, allocations: 198 kB / 472.9 MB, free: 43.03 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3877, allocations: 3.5 kB / 472.9 MB, free: 43.03 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02306/0.4108, allocations: 11.21 MB / 484.1 MB, free: 42.15 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001371/0.411, allocations: 217.6 kB / 484.3 MB, free: 41.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.985/2.396, allocations: 0 / 484.3 MB, free: 41.91 MB / 382.1 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) Environment - environmentSimulation: