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.0007702/0.0007702, allocations: 93.23 kB / 16.65 MB, free: 6.586 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.0008353/0.0008356, allocations: 182.7 kB / 17.56 MB, free: 6.203 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.521/1.521, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1795/0.1795, allocations: 38.06 MB / 310.1 MB, free: 5.914 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.0005428/0.0005428, allocations: 15.69 kB / 377.2 MB, free: 2.727 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2609, allocations: 56.33 MB / 433.5 MB, free: 18.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.005869/0.2668, allocations: 7.291 MB / 440.8 MB, free: 11.47 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003266/0.2701, allocations: 2.272 MB / 443.1 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005009/0.2706, allocations: 59.62 kB / 443.1 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005014/0.2712, allocations: 135 kB / 443.2 MB, free: 8.996 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007959/0.272, allocations: 386.3 kB / 443.6 MB, free: 8.617 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007873/0.2728, allocations: 315.4 kB / 443.9 MB, free: 8.309 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001011/0.2738, allocations: 1.5 MB / 445.4 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000924/0.2747, allocations: 0.688 MB / 446.1 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000481/0.2752, allocations: 378.2 kB / 446.5 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005567/0.2758, allocations: 0.5567 MB / 447 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.364e-05/0.2758, allocations: 32 kB / 447.1 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003956/0.2763, allocations: 263.5 kB / 447.3 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002101/0.2765, allocations: 339 kB / 447.7 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002606/0.2767, allocations: 407.6 kB / 448.1 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006057/0.2774, allocations: 0.9809 MB / 449 MB, free: 3.137 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.2774, allocations: 0 / 449 MB, free: 3.137 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2774, allocations: 0 / 449 MB, free: 3.137 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.2774, allocations: 0 / 449 MB, free: 3.137 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.001585/0.279, allocations: 0.9883 MB / 450 MB, free: 2.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.279, allocations: 8.031 kB / 450 MB, free: 2.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006478/0.2797, allocations: 131.8 kB / 450.2 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007313/0.2804, allocations: 0.5689 MB / 450.7 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.328e-05/0.2805, allocations: 53.67 kB / 450.8 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001672/0.2806, allocations: 76.02 kB / 450.9 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.2818, allocations: 1.017 MB / 451.9 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.418e-05/0.2819, allocations: 0 / 451.9 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.589e-05/0.2819, allocations: 24 kB / 451.9 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001793/0.2821, allocations: 81.92 kB / 452 MB, free: 68 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.2835, allocations: 0.9758 MB / 453 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004528/0.288, allocations: 3.283 MB / 456.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.2891, allocations: 0.6863 MB / 456.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005819/0.2897, allocations: 423.5 kB / 457.3 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.29e-05/0.2897, allocations: 13.48 kB / 457.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.2898, allocations: 43.05 kB / 457.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=73): time 2.685e-06/0.2898, allocations: 0 / 457.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=75): time 0.003669/0.2935, allocations: 2.435 MB / 459.8 MB, free: 7.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.455e-05/0.2935, allocations: 85.67 kB / 459.9 MB, free: 7.871 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004787/0.294, allocations: 445.9 kB / 460.4 MB, free: 7.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.978e-05/0.2941, allocations: 37.7 kB / 460.4 MB, free: 7.387 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002264/0.2943, allocations: 359.5 kB / 460.7 MB, free: 7.027 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001836/0.2945, allocations: 260.2 kB / 461 MB, free: 6.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.817e-05/0.2946, allocations: 73.69 kB / 461.1 MB, free: 6.691 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.2948, allocations: 374.7 kB / 461.4 MB, free: 6.316 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005169/0.2953, allocations: 345.8 kB / 461.8 MB, free: 5.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006473/0.2959, allocations: 0.5224 MB / 462.3 MB, free: 5.387 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.004991/0.3009, allocations: 2.241 MB / 464.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.301, allocations: 0 / 464.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001547/0.3025, allocations: 1.094 MB / 465.6 MB, free: 1.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.3025, allocations: 11.94 kB / 465.6 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.3026, allocations: 4 kB / 465.6 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001458/0.3027, allocations: 41.28 kB / 465.7 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007278/0.3035, allocations: 191.7 kB / 465.9 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001055/0.3045, allocations: 1.413 MB / 467.3 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004013/0.3049, allocations: 39.95 kB / 467.3 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-05/0.305, allocations: 31.98 kB / 467.4 MB, free: 64 kB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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.0003637/0.3054, allocations: 273.5 kB / 467.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.3055, allocations: 67.19 kB / 467.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001507/0.307, allocations: 0.9701 MB / 468.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.473e-05/0.3071, allocations: 12 kB / 468.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/0.3071, allocations: 4 kB / 468.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.3071, allocations: 3.984 kB / 468.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003114/0.3102, allocations: 2.013 MB / 470.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.3102, allocations: 4 kB / 470.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006548/0.3109, allocations: 151.8 kB / 470.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001098/0.311, allocations: 36.78 kB / 470.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.339e-05/0.3111, allocations: 23.98 kB / 470.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001027/0.3121, allocations: 1.393 MB / 472.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.3121, allocations: 7.938 kB / 472.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00186/0.314, allocations: 1.521 MB / 473.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001364/0.3142, allocations: 144.3 kB / 474 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.585e-05/0.3142, allocations: 23.98 kB / 474 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003587/0.3146, allocations: 36.09 kB / 474 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.3147, allocations: 64.38 kB / 474.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.7e-05/0.3148, allocations: 27.98 kB / 474.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003209/0.3151, allocations: 299.1 kB / 474.4 MB, free: 8.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3151, allocations: 0 / 474.4 MB, free: 8.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007335/0.3159, allocations: 188 kB / 474.6 MB, free: 8.398 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.000284/0.3162, allocations: 143 kB / 474.7 MB, free: 8.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001515/0.3177, allocations: 0.9545 MB / 475.7 MB, free: 7.281 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.3177, allocations: 4 kB / 475.7 MB, free: 7.277 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006448/0.3183, allocations: 0.5213 MB / 476.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.3194, allocations: 147.5 kB / 476.4 MB, free: 6.602 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003184/0.3226, allocations: 2.422 MB / 478.8 MB, free: 4.094 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006689/0.3233, allocations: 1.017 MB / 479.8 MB, free: 3.051 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005884/0.3239, allocations: 197.4 kB / 480 MB, free: 2.855 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001823/0.3241, allocations: 63.42 kB / 480 MB, free: 2.793 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3241, allocations: 0 / 480 MB, free: 2.793 MB / 350.1 MB Notification: Performance of Templates: time 0.01427/0.3384, allocations: 7.507 MB / 487.6 MB, free: 11.3 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: