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.001094/0.001094, allocations: 112.6 kB / 17.06 MB, free: 5.973 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.001129/0.001129, allocations: 200 kB / 18.01 MB, free: 5.055 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.345/1.345, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.171/0.171, allocations: 37.98 MB / 309.2 MB, free: 5.953 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.001668/0.001668, allocations: 63.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1048, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.008355/0.1132, allocations: 6.488 MB / 493.1 MB, free: 2.324 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003273/0.1165, allocations: 1.917 MB / 495 MB, free: 408 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004981/0.117, allocations: 27.88 kB / 495 MB, free: 380 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001337/0.1184, allocations: 446 kB / 495.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009609/0.1193, allocations: 421.8 kB / 495.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008245/0.1202, allocations: 343.3 kB / 496.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001455/0.1216, allocations: 1.036 MB / 497.3 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008813/0.1225, allocations: 0.4926 MB / 497.7 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001004/0.1236, allocations: 470.1 kB / 498.2 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001159/0.1247, allocations: 0.5724 MB / 498.8 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003101/0.125, allocations: 68 kB / 498.8 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007602/0.1258, allocations: 259.6 kB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004824/0.1263, allocations: 367 kB / 499.5 MB, free: 11.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007121/0.127, allocations: 425.9 kB / 499.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001706/0.1287, allocations: 1.044 MB / 0.4892 GB, free: 10.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.1288, allocations: 0 / 0.4892 GB, free: 10.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1288, allocations: 0 / 0.4892 GB, free: 10.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.226e-05/0.1289, allocations: 0 / 0.4892 GB, free: 10.47 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.002923/0.1318, allocations: 1.121 MB / 0.4903 GB, free: 9.297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.1318, allocations: 15.83 kB / 0.4903 GB, free: 9.281 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002549/0.1321, allocations: 122.7 kB / 0.4904 GB, free: 9.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007611/0.1329, allocations: 135.7 kB / 0.4905 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001326/0.1342, allocations: 0.6041 MB / 0.4911 GB, free: 8.375 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.879e-05/0.1343, allocations: 45.69 kB / 0.4912 GB, free: 8.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001765/0.1344, allocations: 87.84 kB / 0.4913 GB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/0.136, allocations: 1.01 MB / 0.4922 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.75e-05/0.1361, allocations: 4 kB / 0.4922 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.645e-05/0.1361, allocations: 24 kB / 0.4923 GB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002137/0.1364, allocations: 77.94 kB / 0.4923 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001522/0.1379, allocations: 0.9758 MB / 0.4933 GB, free: 6.117 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005134/0.143, allocations: 3.252 MB / 0.4965 GB, free: 2.742 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.1442, allocations: 0.6875 MB / 0.4971 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006293/0.1448, allocations: 427.6 kB / 0.4975 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.984e-05/0.1449, allocations: 12.53 kB / 0.4976 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.1449, allocations: 43.06 kB / 0.4976 GB, free: 1.551 MB / 382.1 MB Notification: Performance of pre-optimization done (n=73): time 2.535e-06/0.1449, allocations: 0 / 0.4976 GB, free: 1.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=75): time 0.00393/0.1489, allocations: 2.428 MB / 0.5 GB, free: 15.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.754e-05/0.1489, allocations: 85.67 kB / 0.5001 GB, free: 14.92 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004922/0.1494, allocations: 441.8 kB / 0.5005 GB, free: 14.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.942e-05/0.1495, allocations: 41.83 kB / 0.5005 GB, free: 14.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002537/0.1498, allocations: 363.5 kB / 0.5009 GB, free: 14.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001932/0.15, allocations: 256.3 kB / 0.5011 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002202/0.1502, allocations: 150.6 kB / 0.5012 GB, free: 13.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1503, allocations: 378.6 kB / 0.5016 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005133/0.1509, allocations: 341.8 kB / 0.5019 GB, free: 12.95 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006133/0.1515, allocations: 0.5223 MB / 0.5024 GB, free: 12.36 MB / 398.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.004985/0.1565, allocations: 2.241 MB / 0.5046 GB, free: 10.03 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1565, allocations: 4 kB / 0.5046 GB, free: 10.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001513/0.158, allocations: 1.102 MB / 0.5057 GB, free: 8.895 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.158, allocations: 8 kB / 0.5057 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.1581, allocations: 4 kB / 0.5057 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001449/0.1582, allocations: 52.75 kB / 0.5058 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007413/0.159, allocations: 183.8 kB / 0.506 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001133/0.1601, allocations: 1.5 MB / 0.5074 GB, free: 7.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004201/0.1606, allocations: 39.95 kB / 0.5075 GB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-05/0.1606, allocations: 31.98 kB / 0.5075 GB, free: 6.934 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: 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 (95): * Single equations (assignments): 92 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003471/0.161, allocations: 277.4 kB / 0.5077 GB, free: 6.652 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.1611, allocations: 59.25 kB / 0.5078 GB, free: 6.594 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0014/0.1625, allocations: 0.9778 MB / 0.5088 GB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-05/0.1626, allocations: 19.94 kB / 0.5088 GB, free: 5.566 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1626, allocations: 3.938 kB / 0.5088 GB, free: 5.562 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.1626, allocations: 7.984 kB / 0.5088 GB, free: 5.555 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003273/0.1659, allocations: 1.993 MB / 0.5107 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.305e-06/0.1659, allocations: 4.562 kB / 0.5107 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006761/0.1666, allocations: 155.8 kB / 0.5109 GB, free: 3.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001091/0.1667, allocations: 40.97 kB / 0.5109 GB, free: 3.227 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.568e-05/0.1668, allocations: 23.98 kB / 0.511 GB, free: 3.203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/0.1678, allocations: 1.5 MB / 0.5124 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/0.1679, allocations: 11.94 kB / 0.5124 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001807/0.1697, allocations: 1.532 MB / 0.5139 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.1698, allocations: 132.3 kB / 0.514 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.467e-05/0.1699, allocations: 24.06 kB / 0.5141 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003653/0.1703, allocations: 35.95 kB / 0.5141 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.178e-05/0.1704, allocations: 60.38 kB / 0.5142 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.204e-05/0.1705, allocations: 24 kB / 0.5142 GB, free: 15.64 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003131/0.1708, allocations: 299.1 kB / 0.5145 GB, free: 15.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1708, allocations: 0 / 0.5145 GB, free: 15.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006873/0.1715, allocations: 195.9 kB / 0.5147 GB, free: 15.15 MB / 414.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 (75): * Single equations (assignments): 71 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002304/0.1738, allocations: 2.12 MB / 0.5167 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001395/0.1752, allocations: 0.9577 MB / 0.5177 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.1752, allocations: 0 / 0.5177 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006466/0.1759, allocations: 0.527 MB / 0.5182 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008007/0.1767, allocations: 149.9 kB / 0.5183 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009222/0.1859, allocations: 7.034 MB / 0.5252 GB, free: 3.848 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007527/0.1867, allocations: 1.013 MB / 0.5262 GB, free: 2.805 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005459/0.1873, allocations: 205.3 kB / 0.5264 GB, free: 2.602 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003815/0.1876, allocations: 279.3 kB / 0.5266 GB, free: 2.328 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1877, allocations: 0 / 0.5266 GB, free: 2.328 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2502/0.4379, allocations: 14.82 MB / 0.5411 GB, free: 50.28 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/10.66, allocations: 10.42 kB / 0.5411 GB, free: 50.27 MB / 414.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/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)