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 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: 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.001083/0.001083, allocations: 117.7 kB / 17.7 MB, free: 5.293 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.001177/0.001177, allocations: 191 kB / 18.63 MB, free: 4.367 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.398/1.398, allocations: 205.1 MB / 224.5 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.1767/0.1767, allocations: 37.99 MB / 309.8 MB, free: 5.973 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.001519/0.001519, allocations: 67.91 kB / 376.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2344, allocations: 55.25 MB / 432 MB, free: 19.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.006303/0.2407, allocations: 6.486 MB / 438.5 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002692/0.2435, allocations: 1.925 MB / 440.4 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003511/0.2438, allocations: 35.81 kB / 440.5 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001067/0.2449, allocations: 433.9 kB / 440.9 MB, free: 10.74 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006996/0.2456, allocations: 421.9 kB / 441.3 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007073/0.2463, allocations: 347.2 kB / 441.7 MB, free: 9.988 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007062/0.2471, allocations: 1.028 MB / 442.7 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005087/0.2476, allocations: 0.5004 MB / 443.2 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004075/0.248, allocations: 458.2 kB / 443.6 MB, free: 8.004 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005525/0.2486, allocations: 0.5724 MB / 444.2 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.834e-05/0.2486, allocations: 68 kB / 444.3 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003747/0.249, allocations: 255.6 kB / 444.5 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000233/0.2493, allocations: 375.1 kB / 444.9 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002911/0.2496, allocations: 425.9 kB / 445.3 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000722/0.2503, allocations: 1.04 MB / 446.3 MB, free: 5.285 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2503, allocations: 0 / 446.3 MB, free: 5.285 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2503, allocations: 0 / 446.3 MB, free: 5.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.2503, allocations: 3.984 kB / 446.3 MB, free: 5.281 MB / 318.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.00176/0.2521, allocations: 1.122 MB / 447.5 MB, free: 4.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.06e-05/0.2521, allocations: 11.89 kB / 447.5 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006368/0.2528, allocations: 127.8 kB / 447.6 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009588/0.2538, allocations: 0.6078 MB / 448.2 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.943e-05/0.2538, allocations: 49.69 kB / 448.3 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000147/0.2539, allocations: 84.03 kB / 448.3 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.2551, allocations: 1.01 MB / 449.3 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.275e-05/0.2551, allocations: 0 / 449.3 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.831e-05/0.2552, allocations: 35.98 kB / 449.4 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001779/0.2554, allocations: 73.94 kB / 449.5 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.2565, allocations: 0.9758 MB / 450.4 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004603/0.2611, allocations: 3.248 MB / 453.7 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.2621, allocations: 0.683 MB / 454.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005866/0.2627, allocations: 427.5 kB / 454.8 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.957e-05/0.2628, allocations: 8.562 kB / 454.8 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.2629, allocations: 39.12 kB / 454.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=73): time 2.886e-06/0.2629, allocations: 0 / 454.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=75): time 0.003713/0.2666, allocations: 2.44 MB / 457.3 MB, free: 9.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/0.2667, allocations: 85.67 kB / 457.3 MB, free: 9.871 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004474/0.2671, allocations: 441.9 kB / 457.8 MB, free: 9.434 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.707e-05/0.2672, allocations: 37.7 kB / 457.8 MB, free: 9.391 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002266/0.2674, allocations: 359.5 kB / 458.2 MB, free: 9.031 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.2676, allocations: 260.2 kB / 458.4 MB, free: 8.773 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002188/0.2678, allocations: 154.5 kB / 458.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.268, allocations: 382.6 kB / 458.9 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004931/0.2685, allocations: 341.8 kB / 459.3 MB, free: 7.902 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006066/0.2691, allocations: 0.5186 MB / 459.8 MB, free: 7.312 MB / 334.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.00484/0.2739, allocations: 2.241 MB / 462 MB, free: 4.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.274, allocations: 0 / 462 MB, free: 4.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001581/0.2755, allocations: 1.094 MB / 463.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.2756, allocations: 8 kB / 463.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.2756, allocations: 4 kB / 463.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001456/0.2757, allocations: 36.84 kB / 463.2 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007352/0.2765, allocations: 199.9 kB / 463.4 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001121/0.2776, allocations: 1.5 MB / 464.9 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004279/0.2781, allocations: 35.97 kB / 464.9 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-05/0.2781, allocations: 35.98 kB / 464.9 MB, free: 1.895 MB / 334.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.0003583/0.2785, allocations: 277.4 kB / 465.2 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.2786, allocations: 63.25 kB / 465.3 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001405/0.2801, allocations: 0.9701 MB / 466.3 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.407e-05/0.2801, allocations: 15.98 kB / 466.3 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.2801, allocations: 4 kB / 466.3 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.2801, allocations: 11.92 kB / 466.3 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003101/0.2832, allocations: 2.005 MB / 468.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.886e-06/0.2833, allocations: 8.094 kB / 468.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006637/0.2839, allocations: 151.8 kB / 468.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001052/0.284, allocations: 40.77 kB / 468.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.957e-05/0.2841, allocations: 20 kB / 468.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001041/0.2851, allocations: 1.492 MB / 470 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/0.2852, allocations: 15.88 kB / 470 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001873/0.287, allocations: 1.525 MB / 471.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001734/0.2872, allocations: 148.2 kB / 471.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.203e-05/0.2873, allocations: 16 kB / 471.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003683/0.2877, allocations: 35.97 kB / 471.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.689e-05/0.2878, allocations: 64.36 kB / 471.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.103e-05/0.2879, allocations: 24 kB / 471.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003341/0.2882, allocations: 295.1 kB / 472.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2882, allocations: 0 / 472.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007243/0.2889, allocations: 184 kB / 472.3 MB, free: 10.12 MB / 350.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.0002575/0.2892, allocations: 166.9 kB / 472.4 MB, free: 9.949 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.2907, allocations: 0.9544 MB / 473.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.2907, allocations: 4.438 kB / 473.4 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000701/0.2914, allocations: 0.521 MB / 473.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008297/0.2922, allocations: 155.2 kB / 474.1 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002809/0.2951, allocations: 1.966 MB / 476 MB, free: 6.238 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005773/0.2957, allocations: 1.016 MB / 477.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004914/0.2962, allocations: 201.4 kB / 477.3 MB, free: 4.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001701/0.2963, allocations: 63.42 kB / 477.3 MB, free: 4.934 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2963, allocations: 0 / 477.3 MB, free: 4.934 MB / 350.1 MB Notification: Performance of Templates: time 0.01428/0.3106, allocations: 8.014 MB / 485.3 MB, free: 12.95 MB / 366.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 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)