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.001209/0.001209, allocations: 112.8 kB / 17.68 MB, free: 5.473 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.001182/0.001182, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.592/1.592, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1867/0.1867, allocations: 37.98 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.001427/0.001427, allocations: 75.19 kB / 376.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2968, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.00674/0.3036, allocations: 6.486 MB / 438.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002895/0.3065, allocations: 1.921 MB / 440.4 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004271/0.307, allocations: 27.88 kB / 440.5 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001196/0.3082, allocations: 445.7 kB / 440.9 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000781/0.309, allocations: 413.8 kB / 441.3 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008584/0.3098, allocations: 351.3 kB / 441.6 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009149/0.3108, allocations: 1.032 MB / 442.7 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006281/0.3114, allocations: 0.4964 MB / 443.2 MB, free: 8.312 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005222/0.3119, allocations: 462.1 kB / 443.6 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006201/0.3126, allocations: 0.5685 MB / 444.2 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.017e-05/0.3127, allocations: 64 kB / 444.2 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004423/0.3131, allocations: 263.6 kB / 444.5 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002531/0.3134, allocations: 375.1 kB / 444.9 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003189/0.3137, allocations: 417.9 kB / 445.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008307/0.3145, allocations: 1.044 MB / 446.3 MB, free: 5.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3146, allocations: 0 / 446.3 MB, free: 5.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3146, allocations: 0 / 446.3 MB, free: 5.145 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.616e-05/0.3146, allocations: 4 kB / 446.3 MB, free: 5.141 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.001876/0.3165, allocations: 1.125 MB / 447.5 MB, free: 3.965 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.3165, allocations: 11.89 kB / 447.5 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006985/0.3172, allocations: 123.8 kB / 447.6 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.3183, allocations: 0.6118 MB / 448.2 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.208e-05/0.3183, allocations: 53.67 kB / 448.2 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001503/0.3185, allocations: 68.12 kB / 448.3 MB, free: 3.059 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/0.3198, allocations: 1.014 MB / 449.3 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.874e-05/0.3198, allocations: 3.984 kB / 449.3 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.097e-05/0.3199, allocations: 28 kB / 449.4 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001936/0.3201, allocations: 69.95 kB / 449.4 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.3213, allocations: 0.9797 MB / 450.4 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004817/0.3261, allocations: 3.248 MB / 453.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.3272, allocations: 0.6894 MB / 454.3 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006372/0.3279, allocations: 419.5 kB / 454.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.38e-05/0.328, allocations: 21.41 kB / 454.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.423e-05/0.328, allocations: 51.06 kB / 454.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of pre-optimization done (n=73): time 2.314e-06/0.328, allocations: 0 / 454.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=75): time 0.00419/0.3322, allocations: 2.431 MB / 457.3 MB, free: 9.828 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.113e-05/0.3323, allocations: 85.67 kB / 457.3 MB, free: 9.727 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005086/0.3328, allocations: 445.8 kB / 457.8 MB, free: 9.285 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.884e-05/0.3329, allocations: 33.7 kB / 457.8 MB, free: 9.246 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002497/0.3332, allocations: 355.6 kB / 458.2 MB, free: 8.891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002194/0.3334, allocations: 264.2 kB / 458.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002256/0.3336, allocations: 142.6 kB / 458.6 MB, free: 8.484 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002167/0.3338, allocations: 386.7 kB / 458.9 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004906/0.3343, allocations: 337.8 kB / 459.3 MB, free: 7.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006265/0.335, allocations: 0.5185 MB / 459.8 MB, free: 7.18 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.005126/0.3401, allocations: 2.245 MB / 462 MB, free: 4.844 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.3401, allocations: 0 / 462 MB, free: 4.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001807/0.342, allocations: 1.098 MB / 463.1 MB, free: 3.715 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.342, allocations: 12.09 kB / 463.1 MB, free: 3.703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.342, allocations: 7.984 kB / 463.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000155/0.3422, allocations: 40.83 kB / 463.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000745/0.3429, allocations: 187.6 kB / 463.4 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/0.3443, allocations: 1.504 MB / 464.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004691/0.3447, allocations: 35.97 kB / 464.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.709e-05/0.3448, allocations: 31.98 kB / 464.9 MB, free: 1.754 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.0004696/0.3453, allocations: 281.5 kB / 465.2 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.3454, allocations: 63.19 kB / 465.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00145/0.3469, allocations: 0.97 MB / 466.2 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.322e-05/0.3469, allocations: 12 kB / 466.3 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3469, allocations: 0 / 466.3 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.347, allocations: 7.922 kB / 466.3 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003568/0.3505, allocations: 2.012 MB / 468.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.754e-06/0.3506, allocations: 4 kB / 468.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006845/0.3512, allocations: 151.9 kB / 468.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001175/0.3514, allocations: 40.83 kB / 468.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.578e-05/0.3515, allocations: 24.52 kB / 468.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001249/0.3527, allocations: 1.492 MB / 470 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.3527, allocations: 8.062 kB / 470 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002044/0.3548, allocations: 1.525 MB / 471.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001776/0.355, allocations: 136.2 kB / 471.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.754e-05/0.3551, allocations: 28.05 kB / 471.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003642/0.3554, allocations: 35.95 kB / 471.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.3556, allocations: 60.38 kB / 471.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.208e-05/0.3556, allocations: 32.06 kB / 471.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003406/0.356, allocations: 299.1 kB / 472.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.356, allocations: 0 / 472.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008673/0.3569, allocations: 192 kB / 472.3 MB, free: 9.973 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.0003488/0.3572, allocations: 159 kB / 472.4 MB, free: 9.809 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001756/0.359, allocations: 0.9616 MB / 473.4 MB, free: 8.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.359, allocations: 3.938 kB / 473.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007576/0.3598, allocations: 0.5231 MB / 473.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008452/0.3606, allocations: 157.2 kB / 474.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003167/0.3638, allocations: 1.966 MB / 476 MB, free: 6.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007761/0.3646, allocations: 1.013 MB / 477.1 MB, free: 5.051 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006434/0.3653, allocations: 205.4 kB / 477.3 MB, free: 4.848 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001922/0.3655, allocations: 59.36 kB / 477.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of SimCode: time 1.723e-06/0.3655, allocations: 0 / 477.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of Templates: time 0.01599/0.3815, allocations: 8.013 MB / 485.3 MB, free: 12.8 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 cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)