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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001303/0.001303, allocations: 104.5 kB / 16.62 MB, free: 6.805 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.001247/0.001247, allocations: 193.8 kB / 17.55 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.176/1.176, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.153/0.153, allocations: 38.02 MB / 329.4 MB, free: 9.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.001321, allocations: 61.05 kB / 398.4 MB, free: 34.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09761/0.09895, allocations: 58.06 MB / 456.4 MB, free: 8.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.008891/0.1079, allocations: 7.342 MB / 463.8 MB, free: 0.957 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003444/0.1114, allocations: 1.776 MB / 465.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008552/0.1122, allocations: 55.62 kB / 465.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007179/0.113, allocations: 119.2 kB / 465.7 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00118/0.1142, allocations: 354.4 kB / 466.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006041/0.1148, allocations: 167.8 kB / 466.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001318/0.1162, allocations: 0.9227 MB / 467.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004013/0.1166, allocations: 278.7 kB / 467.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007867/0.1174, allocations: 402.3 kB / 467.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009344/0.1183, allocations: 498.4 kB / 468.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001511/0.1185, allocations: 48 kB / 468.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001959/0.1187, allocations: 48 kB / 468.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002855/0.119, allocations: 255.3 kB / 468.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004096/0.1194, allocations: 322.3 kB / 469 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007031/0.1201, allocations: 0.6656 MB / 469.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1201, allocations: 0 / 469.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1201, allocations: 3.984 kB / 469.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.1202, allocations: 4 kB / 469.7 MB, free: 11.07 MB / 350.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.001688/0.1219, allocations: 0.9446 MB / 470.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.1219, allocations: 15.89 kB / 470.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001043/0.122, allocations: 90.7 kB / 470.7 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.1221, allocations: 64.19 kB / 470.8 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008652/0.123, allocations: 0.5218 MB / 471.3 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.976e-05/0.1231, allocations: 40.94 kB / 471.3 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.407e-05/0.1231, allocations: 48 kB / 471.4 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009248/0.1241, allocations: 0.6249 MB / 472 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.1241, allocations: 4 kB / 472 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.567e-05/0.1241, allocations: 23.94 kB / 472 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001025/0.1243, allocations: 32.97 kB / 472.1 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007576/0.125, allocations: 0.5074 MB / 472.6 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003034/0.1281, allocations: 2.237 MB / 474.8 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007876/0.1289, allocations: 497 kB / 475.3 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006475/0.1295, allocations: 341.6 kB / 475.6 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.421e-05/0.1296, allocations: 7.984 kB / 475.6 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001532/0.1297, allocations: 42.55 kB / 475.7 MB, free: 4.785 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.894e-06/0.1297, allocations: 0 / 475.7 MB, free: 4.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.003537/0.1333, allocations: 1.749 MB / 477.4 MB, free: 2.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.564e-05/0.1334, allocations: 81.11 kB / 477.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004783/0.1339, allocations: 418.1 kB / 477.9 MB, free: 2.445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.938e-05/0.1339, allocations: 37.7 kB / 477.9 MB, free: 2.402 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002143/0.1341, allocations: 300.4 kB / 478.2 MB, free: 2.105 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.1343, allocations: 161.6 kB / 478.4 MB, free: 1.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/0.1344, allocations: 98.19 kB / 478.5 MB, free: 1.844 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.1346, allocations: 362.8 kB / 478.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002886/0.1349, allocations: 181 kB / 479 MB, free: 1.305 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003757/0.1353, allocations: 314.8 kB / 479.3 MB, free: 0.9531 MB / 350.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.002688/0.138, allocations: 1.247 MB / 480.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.138, allocations: 3.938 kB / 480.6 MB, free: 15.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001175/0.1392, allocations: 0.7107 MB / 481.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.1392, allocations: 8 kB / 481.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.1392, allocations: 4 kB / 481.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004387/0.1397, allocations: 137 kB / 481.4 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004273/0.1401, allocations: 107.9 kB / 481.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003115/0.1432, allocations: 2.622 MB / 484.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003022/0.1436, allocations: 35.86 kB / 484.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.084e-05/0.1436, allocations: 20 kB / 484.2 MB, free: 11.84 MB / 366.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.0002937/0.1439, allocations: 216.6 kB / 484.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.006e-05/0.144, allocations: 59.36 kB / 484.5 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001224/0.1452, allocations: 0.6464 MB / 485.1 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.1453, allocations: 8 kB / 485.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.1453, allocations: 96 / 485.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/0.1453, allocations: 15.86 kB / 485.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002461/0.1478, allocations: 1.381 MB / 486.5 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1478, allocations: 0 / 486.5 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003366/0.1481, allocations: 75.89 kB / 486.6 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003893/0.1485, allocations: 148.8 kB / 486.8 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.786e-05/0.1486, allocations: 15.98 kB / 486.8 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002914/0.1515, allocations: 2.619 MB / 489.4 MB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/0.1515, allocations: 15.92 kB / 489.4 MB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.1529, allocations: 0.9846 MB / 490.4 MB, free: 5.379 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.153, allocations: 124.5 kB / 490.5 MB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.765e-05/0.1531, allocations: 15.94 kB / 490.5 MB, free: 5.223 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000243/0.1534, allocations: 23.92 kB / 490.6 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.358e-05/0.1535, allocations: 35.95 kB / 490.6 MB, free: 5.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-05/0.1535, allocations: 19.98 kB / 490.6 MB, free: 5.145 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002791/0.1538, allocations: 283.1 kB / 490.9 MB, free: 4.867 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1538, allocations: 0 / 490.9 MB, free: 4.867 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006614/0.1544, allocations: 148 kB / 491 MB, free: 4.723 MB / 366.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.001871/0.1563, allocations: 1.535 MB / 492.6 MB, free: 3.137 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001419/0.1578, allocations: 0.7269 MB / 493.3 MB, free: 2.398 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.1578, allocations: 0 / 493.3 MB, free: 2.398 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007163/0.1585, allocations: 442.4 kB / 493.7 MB, free: 1.953 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007856/0.1593, allocations: 130.2 kB / 493.9 MB, free: 1.824 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007694/0.167, allocations: 5.384 MB / 499.2 MB, free: 12.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005766/0.1676, allocations: 0.933 MB / 0.4884 GB, free: 11.26 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003522/0.168, allocations: 108.7 kB / 0.4885 GB, free: 11.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002632/0.1682, allocations: 191.4 kB / 0.4887 GB, free: 10.97 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1682, allocations: 0 / 0.4887 GB, free: 10.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4484/0.6166, allocations: 11.65 MB / 0.5001 GB, free: 56.36 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000208/0.6169, allocations: 227.7 kB / 0.5003 GB, free: 56.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.244/2.861, allocations: 0 / 0.5003 GB, free: 56.11 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/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)