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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009466/0.0009469, allocations: 95.05 kB / 16.31 MB, free: 5.996 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.0009348/0.0009349, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.588/1.588, allocations: 205.4 MB / 223.4 MB, free: 5.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.339/0.339, allocations: 38.06 MB / 309.7 MB, free: 8.996 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.0005605/0.0005606, allocations: 14.19 kB / 376.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1219, allocations: 56.34 MB / 432.9 MB, free: 6.742 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.007312/0.1292, allocations: 6.588 MB / 439.5 MB, free: 128 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004579/0.1339, allocations: 2.211 MB / 441.7 MB, free: 13.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000613/0.1345, allocations: 55.62 kB / 441.8 MB, free: 13.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005221/0.135, allocations: 155 kB / 441.9 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001207/0.1363, allocations: 394.7 kB / 442.3 MB, free: 13.31 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00126/0.1375, allocations: 355.2 kB / 442.7 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009039/0.1384, allocations: 0.5461 MB / 443.2 MB, free: 12.42 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001063/0.1395, allocations: 0.6289 MB / 443.8 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000574/0.1401, allocations: 334.8 kB / 444.2 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000602/0.1407, allocations: 414.8 kB / 444.6 MB, free: 11.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.159e-05/0.1408, allocations: 36 kB / 444.6 MB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004201/0.1412, allocations: 183.7 kB / 444.8 MB, free: 10.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002911/0.1415, allocations: 307.3 kB / 445.1 MB, free: 10.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001638/0.1417, allocations: 169.2 kB / 445.3 MB, free: 10.33 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007135/0.1424, allocations: 0.7482 MB / 446 MB, free: 9.582 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1425, allocations: 4 kB / 446 MB, free: 9.578 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1425, allocations: 0 / 446 MB, free: 9.578 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.1425, allocations: 0 / 446 MB, free: 9.578 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002056/0.1445, allocations: 0.992 MB / 447 MB, free: 8.531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.1446, allocations: 12.03 kB / 447 MB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001504/0.1447, allocations: 122.6 kB / 447.1 MB, free: 8.391 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007149/0.1455, allocations: 134.9 kB / 447.3 MB, free: 8.258 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001141/0.1466, allocations: 0.56 MB / 447.8 MB, free: 7.656 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.722e-05/0.1467, allocations: 53.25 kB / 447.9 MB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001709/0.1469, allocations: 75.92 kB / 447.9 MB, free: 7.531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.1484, allocations: 0.998 MB / 448.9 MB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.042e-05/0.1485, allocations: 0 / 448.9 MB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.46e-05/0.1485, allocations: 31.98 kB / 449 MB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002019/0.1487, allocations: 77.88 kB / 449.1 MB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.1502, allocations: 0.9719 MB / 450 MB, free: 5.418 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0049/0.1551, allocations: 3.272 MB / 453.3 MB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.1562, allocations: 0.6946 MB / 454 MB, free: 1.312 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.833e-05/0.1563, allocations: 12.61 kB / 454 MB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.1563, allocations: 43.12 kB / 454 MB, free: 1.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=73): time 2.615e-06/0.1563, allocations: 0 / 454 MB, free: 1.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=75): time 0.2335/0.3899, allocations: 2.555 MB / 456.6 MB, free: 51.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.39, allocations: 88.91 kB / 456.7 MB, free: 51.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000397/0.3904, allocations: 440.7 kB / 457.1 MB, free: 51 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.96e-05/0.3904, allocations: 35.58 kB / 457.2 MB, free: 50.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.3906, allocations: 354.3 kB / 457.5 MB, free: 50.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.3907, allocations: 270.1 kB / 457.8 MB, free: 50.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.347e-05/0.3908, allocations: 14.19 kB / 457.8 MB, free: 50.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.241e-05/0.3909, allocations: 377 kB / 458.1 MB, free: 50.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004/0.3913, allocations: 333.5 kB / 458.5 MB, free: 50.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004958/0.3918, allocations: 0.5112 MB / 459 MB, free: 50.09 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.003531/0.3953, allocations: 1.397 MB / 460.4 MB, free: 49.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.3953, allocations: 0 / 460.4 MB, free: 49.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001568/0.3969, allocations: 1.08 MB / 461.5 MB, free: 49.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.3969, allocations: 13.38 kB / 461.5 MB, free: 49.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.3969, allocations: 3.125 kB / 461.5 MB, free: 49.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001332/0.3971, allocations: 30.73 kB / 461.5 MB, free: 49.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000739/0.3978, allocations: 207.4 kB / 461.7 MB, free: 49.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007525/0.3986, allocations: 1.339 MB / 463 MB, free: 48.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004149/0.399, allocations: 35.5 kB / 463.1 MB, free: 48.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.024e-05/0.3991, allocations: 39.88 kB / 463.1 MB, free: 48.51 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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (96): * Single equations (assignments): 93 * Array equations: 2 * 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.0003504/0.3995, allocations: 272.8 kB / 463.4 MB, free: 48.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.3996, allocations: 60 kB / 463.4 MB, free: 48.35 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001362/0.4009, allocations: 0.9598 MB / 464.4 MB, free: 48.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.27e-05/0.401, allocations: 16.75 kB / 464.4 MB, free: 48.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.401, allocations: 0 / 464.4 MB, free: 48.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.401, allocations: 3.422 kB / 464.4 MB, free: 48.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002743/0.4038, allocations: 1.99 MB / 466.4 MB, free: 47.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.4038, allocations: 3.344 kB / 466.4 MB, free: 47.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006729/0.4045, allocations: 160.2 kB / 466.6 MB, free: 47.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.791e-05/0.4045, allocations: 32.94 kB / 466.6 MB, free: 47.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.592e-05/0.4046, allocations: 28.91 kB / 466.6 MB, free: 47.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006327/0.4052, allocations: 1.333 MB / 468 MB, free: 45.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.4053, allocations: 6.656 kB / 468 MB, free: 45.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001564/0.4068, allocations: 1.734 MB / 469.7 MB, free: 44.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.407, allocations: 139.9 kB / 469.8 MB, free: 44.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.799e-05/0.407, allocations: 20.97 kB / 469.9 MB, free: 44.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003372/0.4074, allocations: 38.31 kB / 469.9 MB, free: 44.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.733e-05/0.4075, allocations: 62.14 kB / 470 MB, free: 44.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.234e-05/0.4075, allocations: 23.59 kB / 470 MB, free: 44.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002561/0.4078, allocations: 294 kB / 470.3 MB, free: 44.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4078, allocations: 7.531 kB / 470.3 MB, free: 44.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006956/0.4085, allocations: 174.2 kB / 470.5 MB, free: 44.46 MB / 382.1 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 (76): * Single equations (assignments): 72 * Array equations: 2 * 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.001991/0.4105, allocations: 3.629 MB / 474.1 MB, free: 41.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001225/0.4117, allocations: 0.9355 MB / 475 MB, free: 41.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.4117, allocations: 0 / 475 MB, free: 41.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005455/0.4123, allocations: 0.5194 MB / 475.5 MB, free: 40.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006452/0.413, allocations: 124.6 kB / 475.7 MB, free: 40.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006269/0.4192, allocations: 8.602 MB / 484.3 MB, free: 34.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004406/0.4197, allocations: 1.031 MB / 485.3 MB, free: 33.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005504/0.4203, allocations: 204.7 kB / 485.5 MB, free: 33.83 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003139/0.4206, allocations: 277.3 kB / 485.8 MB, free: 33.63 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4206, allocations: 0 / 485.8 MB, free: 33.63 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03417/0.4548, allocations: 13.63 MB / 499.4 MB, free: 32.64 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001516/0.455, allocations: 207.6 kB / 499.6 MB, free: 32.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.956/2.411, allocations: 0 / 499.6 MB, free: 32.39 MB / 382.1 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) Environment - environmentSimulation: