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.001223/0.001227, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001222/0.001222, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.306/1.306, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1727/0.1727, allocations: 38.03 MB / 329.7 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 66.44 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09482/0.09616, allocations: 58.07 MB / 457 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007148/0.1033, allocations: 6.071 MB / 463 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0023/0.1057, allocations: 1.422 MB / 464.5 MB, free: 420 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003443/0.106, allocations: 23.88 kB / 464.5 MB, free: 396 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004771/0.1065, allocations: 134.8 kB / 464.6 MB, free: 260 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008193/0.1074, allocations: 394 kB / 465 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004718/0.1079, allocations: 195.6 kB / 465.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009048/0.1088, allocations: 0.9112 MB / 466.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003574/0.1091, allocations: 278.7 kB / 466.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005635/0.1097, allocations: 402.3 kB / 466.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000646/0.1104, allocations: 470.4 kB / 467.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.578e-05/0.1105, allocations: 51.94 kB / 467.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.1106, allocations: 48 kB / 467.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000231/0.1108, allocations: 263.3 kB / 467.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002859/0.1111, allocations: 314.4 kB / 467.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005651/0.1117, allocations: 0.6617 MB / 468.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.341e-06/0.1117, allocations: 7.938 kB / 468.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1117, allocations: 7.938 kB / 468.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.1117, allocations: 0 / 468.6 MB, free: 12.29 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.001551/0.1133, allocations: 0.9476 MB / 469.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.1133, allocations: 11.89 kB / 469.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.652e-05/0.1134, allocations: 94.7 kB / 469.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.713e-05/0.1135, allocations: 68.09 kB / 469.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007855/0.1143, allocations: 0.5218 MB / 470.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.494e-05/0.1144, allocations: 40.94 kB / 470.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.191e-05/0.1145, allocations: 55.98 kB / 470.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008682/0.1153, allocations: 0.621 MB / 470.9 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.1154, allocations: 0 / 470.9 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.764e-05/0.1154, allocations: 28 kB / 471 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001071/0.1155, allocations: 32.97 kB / 471 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007701/0.1163, allocations: 0.5035 MB / 471.5 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002968/0.1193, allocations: 2.226 MB / 473.7 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007904/0.1201, allocations: 497.1 kB / 474.2 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006003/0.1207, allocations: 346.1 kB / 474.5 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.064e-05/0.1207, allocations: 7.938 kB / 474.5 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.776e-05/0.1208, allocations: 46.48 kB / 474.6 MB, free: 6.004 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.723e-06/0.1208, allocations: 4 kB / 474.6 MB, free: 6 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.003276/0.1241, allocations: 1.749 MB / 476.3 MB, free: 4.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.961e-05/0.1241, allocations: 85.23 kB / 476.4 MB, free: 4.074 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004229/0.1246, allocations: 421.8 kB / 476.8 MB, free: 3.652 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.575e-05/0.1246, allocations: 33.7 kB / 476.9 MB, free: 3.613 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.1248, allocations: 292.5 kB / 477.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/0.1249, allocations: 165.6 kB / 477.3 MB, free: 3.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.1251, allocations: 98.16 kB / 477.4 MB, free: 3.059 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.1252, allocations: 358.8 kB / 477.8 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002735/0.1255, allocations: 185 kB / 477.9 MB, free: 2.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003473/0.1258, allocations: 311.6 kB / 478.2 MB, free: 2.164 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.002535/0.1284, allocations: 1.241 MB / 479.5 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.1284, allocations: 0 / 479.5 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001082/0.1295, allocations: 0.703 MB / 480.2 MB, free: 140 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.1295, allocations: 8 kB / 480.2 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.1295, allocations: 4 kB / 480.2 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003756/0.1299, allocations: 148.9 kB / 480.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004491/0.1304, allocations: 103.8 kB / 480.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002797/0.1332, allocations: 2.622 MB / 483.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002978/0.1335, allocations: 32.05 kB / 483.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-05/0.1335, allocations: 23.94 kB / 483.1 MB, free: 13.05 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.0002724/0.1338, allocations: 226.6 kB / 483.3 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.876e-05/0.1339, allocations: 59.27 kB / 483.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001062/0.135, allocations: 0.6464 MB / 484.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.914e-06/0.135, allocations: 8 kB / 484.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.135, allocations: 0 / 484.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.135, allocations: 11.92 kB / 484.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001979/0.137, allocations: 1.377 MB / 485.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.137, allocations: 0 / 485.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003501/0.1374, allocations: 79.89 kB / 485.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003937/0.1378, allocations: 148.9 kB / 485.7 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.627e-05/0.1378, allocations: 15.98 kB / 485.7 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002626/0.1405, allocations: 2.619 MB / 488.3 MB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.1405, allocations: 0 / 488.3 MB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001321/0.1418, allocations: 0.9846 MB / 489.3 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.1419, allocations: 128.5 kB / 489.4 MB, free: 6.461 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.815e-05/0.142, allocations: 12 kB / 489.4 MB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002577/0.1423, allocations: 23.92 kB / 489.5 MB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.801e-05/0.1423, allocations: 39.89 kB / 489.5 MB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.718e-05/0.1424, allocations: 15.98 kB / 489.5 MB, free: 6.371 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002827/0.1427, allocations: 287.1 kB / 489.8 MB, free: 6.094 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1427, allocations: 0 / 489.8 MB, free: 6.094 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005796/0.1433, allocations: 144 kB / 489.9 MB, free: 5.953 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.00159/0.1449, allocations: 1.538 MB / 491.5 MB, free: 4.367 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001173/0.146, allocations: 0.7226 MB / 492.2 MB, free: 3.633 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.1461, allocations: 0 / 492.2 MB, free: 3.633 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006346/0.1467, allocations: 443.2 kB / 492.6 MB, free: 3.188 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007054/0.1474, allocations: 141.6 kB / 492.8 MB, free: 3.051 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006639/0.1541, allocations: 5.173 MB / 497.9 MB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005603/0.1546, allocations: 0.9331 MB / 498.9 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003587/0.155, allocations: 100.7 kB / 499 MB, free: 12.6 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002651/0.1553, allocations: 191.4 kB / 499.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.1553, allocations: 4 kB / 499.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03663/0.1919, allocations: 11.72 MB / 0.4989 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.893/9.085, allocations: 5.438 kB / 0.4989 GB, free: 0.8359 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)