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.001121/0.001121, allocations: 105.7 kB / 17.06 MB, free: 6.027 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.001161/0.001161, allocations: 195 kB / 18 MB, free: 5.105 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.353/1.353, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1707/0.1707, allocations: 37.98 MB / 309.2 MB, free: 5.977 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.001383/0.001383, allocations: 67.89 kB / 431.4 MB, free: 16.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09142/0.09281, allocations: 55.24 MB / 486.6 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007663/0.1005, allocations: 6.08 MB / 492.7 MB, free: 2.742 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002855/0.1034, allocations: 1.469 MB / 494.2 MB, free: 1.266 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000528/0.104, allocations: 27.81 kB / 494.2 MB, free: 1.238 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006755/0.1047, allocations: 138.9 kB / 494.3 MB, free: 1.102 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001216/0.1059, allocations: 390 kB / 494.7 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006022/0.1066, allocations: 183.6 kB / 494.9 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00116/0.1077, allocations: 0.9266 MB / 495.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004246/0.1082, allocations: 270.7 kB / 496.1 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009015/0.1091, allocations: 422.1 kB / 496.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001104/0.1102, allocations: 466.4 kB / 496.9 MB, free: 14.47 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002033/0.1104, allocations: 48 kB / 497 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002735/0.1107, allocations: 48 kB / 497 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004238/0.1112, allocations: 263.3 kB / 497.3 MB, free: 14.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006648/0.1118, allocations: 322.3 kB / 497.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001014/0.1129, allocations: 0.6656 MB / 498.3 MB, free: 13.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1129, allocations: 3.938 kB / 498.3 MB, free: 13.13 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1129, allocations: 0 / 498.3 MB, free: 13.13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.877e-05/0.1129, allocations: 0 / 498.3 MB, free: 13.13 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.002/0.1149, allocations: 0.9525 MB / 499.2 MB, free: 12.13 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.126e-05/0.115, allocations: 19.89 kB / 499.2 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002646/0.1153, allocations: 86.7 kB / 499.3 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001923/0.1155, allocations: 68.09 kB / 499.4 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/0.1169, allocations: 0.5686 MB / 500 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.9e-05/0.117, allocations: 36.94 kB / 500 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.1171, allocations: 48 kB / 0.4883 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.1182, allocations: 0.621 MB / 0.4889 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.1182, allocations: 0 / 0.4889 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.021e-05/0.1183, allocations: 20 kB / 0.4889 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001089/0.1184, allocations: 36.97 kB / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008342/0.1193, allocations: 0.5074 MB / 0.4895 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003411/0.1227, allocations: 2.214 MB / 0.4916 GB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008059/0.1235, allocations: 0.4932 MB / 0.4921 GB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000647/0.1242, allocations: 358.2 kB / 0.4925 GB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.454e-05/0.1242, allocations: 7.953 kB / 0.4925 GB, free: 6.855 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.1243, allocations: 38.56 kB / 0.4925 GB, free: 6.809 MB / 382.1 MB Notification: Performance of pre-optimization done (n=45): time 2.525e-06/0.1243, allocations: 0 / 0.4925 GB, free: 6.809 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.003567/0.1278, allocations: 1.742 MB / 0.4942 GB, free: 4.988 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.558e-05/0.1279, allocations: 81.11 kB / 0.4943 GB, free: 4.891 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004535/0.1284, allocations: 421.8 kB / 0.4947 GB, free: 4.469 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.1284, allocations: 37.64 kB / 0.4947 GB, free: 4.426 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001974/0.1286, allocations: 300.5 kB / 0.495 GB, free: 4.125 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.1288, allocations: 173.5 kB / 0.4952 GB, free: 3.953 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.1289, allocations: 94.16 kB / 0.4953 GB, free: 3.855 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.129, allocations: 362.8 kB / 0.4956 GB, free: 3.492 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002819/0.1293, allocations: 185 kB / 0.4958 GB, free: 3.312 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000359/0.1297, allocations: 307.6 kB / 0.4961 GB, free: 2.961 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.002534/0.1323, allocations: 1.234 MB / 0.4973 GB, free: 1.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.952e-06/0.1323, allocations: 15.94 kB / 0.4973 GB, free: 1.645 MB / 382.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001123/0.1334, allocations: 0.6992 MB / 0.498 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.1334, allocations: 4 kB / 0.498 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.1334, allocations: 4 kB / 0.498 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003953/0.1338, allocations: 144.6 kB / 0.4981 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004534/0.1343, allocations: 107.9 kB / 0.4982 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002946/0.1373, allocations: 2.607 MB / 0.5008 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003376/0.1376, allocations: 27.92 kB / 0.5008 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.785e-05/0.1377, allocations: 20 kB / 0.5008 GB, free: 13.89 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[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 (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 {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002904/0.138, allocations: 217.7 kB / 0.501 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.241e-05/0.1381, allocations: 63.27 kB / 0.5011 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001056/0.1391, allocations: 0.6542 MB / 0.5017 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.1391, allocations: 8 kB / 0.5017 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.1392, allocations: 0 / 0.5017 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.1392, allocations: 11.92 kB / 0.5018 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002115/0.1413, allocations: 1.365 MB / 0.5031 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.1413, allocations: 0 / 0.5031 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003698/0.1417, allocations: 75.89 kB / 0.5032 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003966/0.1421, allocations: 144.9 kB / 0.5033 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.998e-05/0.1421, allocations: 19.97 kB / 0.5033 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002678/0.1448, allocations: 2.627 MB / 0.5059 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.1448, allocations: 0 / 0.5059 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/0.1462, allocations: 0.9854 MB / 0.5068 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001268/0.1464, allocations: 124.5 kB / 0.507 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.748e-05/0.1465, allocations: 20.03 kB / 0.507 GB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002477/0.1467, allocations: 19.92 kB / 0.507 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.093e-05/0.1468, allocations: 39.89 kB / 0.507 GB, free: 7.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-05/0.1468, allocations: 16.09 kB / 0.5071 GB, free: 7.207 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002994/0.1472, allocations: 291.1 kB / 0.5073 GB, free: 6.926 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1472, allocations: 0 / 0.5073 GB, free: 6.926 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006056/0.1478, allocations: 144 kB / 0.5075 GB, free: 6.785 MB / 398.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 (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 {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001648/0.1494, allocations: 1.541 MB / 0.509 GB, free: 5.195 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001053/0.1505, allocations: 0.6601 MB / 0.5096 GB, free: 4.523 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1505, allocations: 3.938 kB / 0.5096 GB, free: 4.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006231/0.1511, allocations: 439 kB / 0.51 GB, free: 4.078 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006994/0.1519, allocations: 141.7 kB / 0.5102 GB, free: 3.938 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006371/0.1582, allocations: 5.11 MB / 0.5152 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004951/0.1588, allocations: 0.9292 MB / 0.5161 GB, free: 13.65 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002956/0.1591, allocations: 108.7 kB / 0.5162 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000248/0.1593, allocations: 195.4 kB / 0.5164 GB, free: 13.35 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1593, allocations: 0 / 0.5164 GB, free: 13.35 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03341/0.1927, allocations: 12.11 MB / 0.5282 GB, free: 1.168 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.759/9.952, allocations: 4.344 kB / 0.5282 GB, free: 1.164 MB / 414.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/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)