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: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002082/0.002082, allocations: 115.3 kB / 17.29 MB, free: 6.324 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.002348/0.002348, allocations: 197.3 kB / 18.2 MB, free: 5.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.401/2.401, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.349/0.349, allocations: 38.02 MB / 330.1 MB, free: 8.992 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001903, allocations: 62.02 kB / 398.9 MB, free: 34.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1401, allocations: 58.06 MB / 457 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.01478/0.155, allocations: 7.732 MB / 464.7 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006412/0.1614, allocations: 2.24 MB / 467 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001341/0.1628, allocations: 55.62 kB / 467 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002049/0.1649, allocations: 418.2 kB / 467.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001816/0.1667, allocations: 386.3 kB / 467.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001794/0.1685, allocations: 315.5 kB / 468.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002549/0.1711, allocations: 1.036 MB / 469.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001459/0.1726, allocations: 0.5044 MB / 469.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00122/0.1738, allocations: 458.2 kB / 470.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001484/0.1753, allocations: 0.5997 MB / 470.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003312/0.1757, allocations: 68 kB / 470.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001054/0.1767, allocations: 279.6 kB / 471 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007401/0.1775, allocations: 371.1 kB / 471.4 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001123/0.1786, allocations: 425.8 kB / 471.8 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001557/0.1802, allocations: 0.7874 MB / 472.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.1802, allocations: 0 / 472.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1802, allocations: 0 / 472.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.534e-05/0.1803, allocations: 0 / 472.6 MB, free: 8.742 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.003959/0.1843, allocations: 1.117 MB / 473.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.992e-05/0.1843, allocations: 15.88 kB / 473.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001212/0.1856, allocations: 123.8 kB / 473.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001731/0.1873, allocations: 0.5767 MB / 474.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.967e-05/0.1874, allocations: 53.67 kB / 474.5 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003185/0.1877, allocations: 72.03 kB / 474.6 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002659/0.1904, allocations: 1.017 MB / 475.6 MB, free: 5.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.464e-05/0.1905, allocations: 0 / 475.6 MB, free: 5.645 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.1906, allocations: 28 kB / 475.6 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003214/0.1909, allocations: 69.95 kB / 475.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002511/0.1935, allocations: 0.9758 MB / 476.7 MB, free: 4.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008032/0.2015, allocations: 3.275 MB / 479.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001733/0.2033, allocations: 0.684 MB / 480.6 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009594/0.2043, allocations: 419.5 kB / 481 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.976e-05/0.2044, allocations: 17.47 kB / 481 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.758e-05/0.2045, allocations: 55.14 kB / 481.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 5.29e-06/0.2045, allocations: 0 / 481.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=75): time 0.00636/0.2109, allocations: 2.423 MB / 483.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.626e-05/0.211, allocations: 85.67 kB / 483.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008121/0.2118, allocations: 445.8 kB / 484 MB, free: 12.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.263e-05/0.2119, allocations: 33.7 kB / 484.1 MB, free: 12.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000363/0.2123, allocations: 351.6 kB / 484.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003355/0.2126, allocations: 268.1 kB / 484.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003474/0.213, allocations: 150.6 kB / 484.8 MB, free: 12.1 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002377/0.2132, allocations: 382.6 kB / 485.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000836/0.2141, allocations: 337.8 kB / 485.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.2151, allocations: 0.5185 MB / 486 MB, free: 10.8 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.008085/0.2232, allocations: 2.246 MB / 488.3 MB, free: 8.465 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/0.2233, allocations: 4 kB / 488.3 MB, free: 8.461 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00281/0.2261, allocations: 1.102 MB / 489.4 MB, free: 7.332 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.149e-05/0.2262, allocations: 8 kB / 489.4 MB, free: 7.324 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.394e-05/0.2262, allocations: 12.02 kB / 489.4 MB, free: 7.312 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002259/0.2264, allocations: 44.77 kB / 489.5 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/0.2276, allocations: 195.6 kB / 489.7 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001848/0.2295, allocations: 1.5 MB / 491.2 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007429/0.2303, allocations: 31.98 kB / 491.2 MB, free: 5.398 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.2304, allocations: 31.98 kB / 491.2 MB, free: 5.367 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.0006426/0.231, allocations: 277.6 kB / 491.5 MB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002685/0.2313, allocations: 59.25 kB / 491.5 MB, free: 5.027 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002354/0.2337, allocations: 0.9739 MB / 492.5 MB, free: 4.023 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.774e-05/0.2337, allocations: 16 kB / 492.5 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.2338, allocations: 0 / 492.5 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.72e-05/0.2338, allocations: 7.922 kB / 492.5 MB, free: 4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005143/0.2389, allocations: 2.001 MB / 494.5 MB, free: 1.867 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.42e-05/0.239, allocations: 4 kB / 494.5 MB, free: 1.863 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.24, allocations: 152.3 kB / 494.7 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001664/0.2402, allocations: 40.84 kB / 494.7 MB, free: 1.672 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.6e-05/0.2403, allocations: 28.12 kB / 494.8 MB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001658/0.242, allocations: 1.5 MB / 496.3 MB, free: 4 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.089e-05/0.242, allocations: 4 kB / 496.3 MB, free: 0 / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003137/0.2451, allocations: 1.528 MB / 497.8 MB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002673/0.2454, allocations: 136.2 kB / 497.9 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001747/0.2456, allocations: 28.05 kB / 498 MB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006424/0.2463, allocations: 31.95 kB / 498 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/0.2465, allocations: 64.38 kB / 498 MB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.341e-05/0.2465, allocations: 24 kB / 498.1 MB, free: 14.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005758/0.2471, allocations: 303.1 kB / 498.4 MB, free: 13.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.234e-06/0.2471, allocations: 0 / 498.4 MB, free: 13.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001311/0.2485, allocations: 187.9 kB / 498.5 MB, free: 13.59 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.0004444/0.2489, allocations: 159.1 kB / 498.7 MB, free: 13.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003068/0.252, allocations: 1.173 MB / 499.9 MB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.252, allocations: 3.938 kB / 499.9 MB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.2532, allocations: 0.5252 MB / 0.4887 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001454/0.2546, allocations: 141.4 kB / 0.4888 GB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005462/0.2601, allocations: 2.369 MB / 0.4911 GB, free: 9.113 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001121/0.2613, allocations: 1.013 MB / 0.4921 GB, free: 8.074 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003564/0.2616, allocations: 59.42 kB / 0.4922 GB, free: 8.016 MB / 382.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2616, allocations: 4 kB / 0.4922 GB, free: 8.012 MB / 382.1 MB Notification: Performance of Templates: time 0.02767/0.2893, allocations: 11.97 MB / 0.5039 GB, free: 12.05 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (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 & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)