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 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.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.001171/0.001171, allocations: 114.9 kB / 16.63 MB, free: 6.812 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.00118/0.001181, allocations: 186 kB / 17.55 MB, free: 5.934 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.31/1.31, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1651/0.1651, allocations: 38.02 MB / 329.4 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 64.48 kB / 398.4 MB, free: 34.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09449/0.09589, allocations: 58.07 MB / 456.4 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.009638/0.1056, allocations: 7.736 MB / 464.2 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004761/0.1104, allocations: 2.236 MB / 466.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001081/0.1115, allocations: 55.62 kB / 466.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001533/0.1131, allocations: 406.3 kB / 466.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001213/0.1143, allocations: 390.3 kB / 467.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.1154, allocations: 315.5 kB / 467.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001491/0.1169, allocations: 1.04 MB / 468.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009497/0.1178, allocations: 0.5121 MB / 469.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008988/0.1187, allocations: 462.1 kB / 469.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001015/0.1198, allocations: 0.5958 MB / 470.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001782/0.12, allocations: 68 kB / 470.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006892/0.1207, allocations: 275.6 kB / 470.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004378/0.1211, allocations: 367.1 kB / 470.8 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007643/0.1219, allocations: 433.8 kB / 471.3 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001405/0.1233, allocations: 1.024 MB / 472.3 MB, free: 8.355 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.1233, allocations: 8 kB / 472.3 MB, free: 8.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1233, allocations: 0 / 472.3 MB, free: 8.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.122e-05/0.1234, allocations: 0 / 472.3 MB, free: 8.348 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002632/0.126, allocations: 1.113 MB / 473.4 MB, free: 7.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.1261, allocations: 11.89 kB / 473.4 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001666/0.1263, allocations: 118.8 kB / 473.5 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007677/0.127, allocations: 127.8 kB / 473.7 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009766/0.128, allocations: 0.5767 MB / 474.2 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.562e-05/0.1281, allocations: 53.67 kB / 474.3 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.1282, allocations: 71.84 kB / 474.4 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/0.1298, allocations: 1.018 MB / 475.4 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.1299, allocations: 3.938 kB / 475.4 MB, free: 5.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.788e-05/0.1299, allocations: 28 kB / 475.4 MB, free: 5.098 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001989/0.1301, allocations: 69.95 kB / 475.5 MB, free: 5.027 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001558/0.1317, allocations: 0.9758 MB / 476.5 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004683/0.1364, allocations: 3.272 MB / 479.7 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.1375, allocations: 0.6849 MB / 480.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005902/0.1381, allocations: 430 kB / 480.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.043e-05/0.1382, allocations: 12.55 kB / 480.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.1382, allocations: 43.06 kB / 480.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.725e-06/0.1382, allocations: 4 kB / 480.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=75): time 0.003653/0.1419, allocations: 2.427 MB / 483.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.714e-05/0.1419, allocations: 89.7 kB / 483.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004486/0.1424, allocations: 441.8 kB / 483.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.656e-05/0.1424, allocations: 33.7 kB / 483.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002176/0.1427, allocations: 355.6 kB / 484.2 MB, free: 12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001956/0.1429, allocations: 264.1 kB / 484.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002217/0.1431, allocations: 150.6 kB / 484.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.1433, allocations: 374.7 kB / 485 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005034/0.1438, allocations: 349.8 kB / 485.3 MB, free: 10.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006689/0.1445, allocations: 0.5146 MB / 485.9 MB, free: 10.29 MB / 366.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.005049/0.1495, allocations: 2.249 MB / 488.1 MB, free: 7.945 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.1495, allocations: 4 kB / 488.1 MB, free: 7.941 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001565/0.1511, allocations: 1.094 MB / 489.2 MB, free: 6.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.1511, allocations: 10.03 kB / 489.2 MB, free: 6.812 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.1512, allocations: 4 kB / 489.2 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001518/0.1513, allocations: 49.17 kB / 489.3 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007265/0.1521, allocations: 191.8 kB / 489.4 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001331/0.1534, allocations: 1.504 MB / 491 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004847/0.1539, allocations: 35.97 kB / 491 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.53e-05/0.154, allocations: 32 kB / 491 MB, free: 4.855 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[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.0004388/0.1544, allocations: 281.4 kB / 491.3 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.1546, allocations: 67.3 kB / 491.4 MB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00149/0.1561, allocations: 0.9661 MB / 492.3 MB, free: 3.508 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.466e-05/0.1561, allocations: 16 kB / 492.3 MB, free: 3.492 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.1561, allocations: 3.938 kB / 492.3 MB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.1562, allocations: 3.984 kB / 492.3 MB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003264/0.1594, allocations: 2.012 MB / 494.4 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.1594, allocations: 4 kB / 494.4 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006432/0.1601, allocations: 151.8 kB / 494.5 MB, free: 1.188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001288/0.1602, allocations: 33.41 kB / 494.5 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.677e-05/0.1603, allocations: 27.98 kB / 494.6 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001143/0.1615, allocations: 1.5 MB / 496.1 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.1615, allocations: 4 kB / 496.1 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00187/0.1633, allocations: 1.532 MB / 497.6 MB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001461/0.1635, allocations: 144.3 kB / 497.7 MB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.946e-05/0.1636, allocations: 23.98 kB / 497.8 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000359/0.164, allocations: 31.97 kB / 497.8 MB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.492e-05/0.1641, allocations: 60.38 kB / 497.9 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.715e-05/0.1641, allocations: 27.98 kB / 497.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003022/0.1644, allocations: 299.1 kB / 498.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1645, allocations: 0 / 498.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007458/0.1652, allocations: 191.9 kB / 498.4 MB, free: 13.07 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 (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.002362/0.1676, allocations: 2.114 MB / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001886/0.1695, allocations: 1.184 MB / 0.4899 GB, free: 9.652 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.1695, allocations: 0 / 0.4899 GB, free: 9.652 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006726/0.1702, allocations: 0.5148 MB / 0.4904 GB, free: 9.125 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008392/0.171, allocations: 153.6 kB / 0.4906 GB, free: 8.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009765/0.1808, allocations: 7.439 MB / 0.4978 GB, free: 1.148 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006645/0.1815, allocations: 1.024 MB / 0.4988 GB, free: 100 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006255/0.1821, allocations: 209.3 kB / 0.499 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004107/0.1826, allocations: 271.3 kB / 0.4993 GB, free: 15.62 MB / 398.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1826, allocations: 0 / 0.4993 GB, free: 15.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03414/0.2167, allocations: 14.21 MB / 0.5132 GB, free: 1.598 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003665/0.2172, allocations: 226.4 kB / 0.5134 GB, free: 1.344 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.224/2.441, allocations: 0 / 0.5134 GB, free: 1.344 MB / 398.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)