Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008028/0.0008028, allocations: 91.06 kB / 16.65 MB, free: 6.348 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.0009546/0.0009547, allocations: 180.3 kB / 17.56 MB, free: 5.949 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.422/1.422, allocations: 205.4 MB / 223.7 MB, free: 13.06 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1739/0.1739, allocations: 38.06 MB / 310.1 MB, free: 5.984 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.000912/0.0009121, allocations: 12.52 kB / 377.2 MB, free: 2.793 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2661, allocations: 56.33 MB / 433.5 MB, free: 18.69 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007389/0.2736, allocations: 6.909 MB / 440.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003455/0.2771, allocations: 1.812 MB / 442.2 MB, free: 9.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000938/0.278, allocations: 47.69 kB / 442.3 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005242/0.2786, allocations: 115.2 kB / 442.4 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009844/0.2796, allocations: 362.4 kB / 442.7 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005668/0.2802, allocations: 167.8 kB / 442.9 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001274/0.2814, allocations: 1.387 MB / 444.3 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003769/0.2818, allocations: 225.5 kB / 444.5 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008797/0.2827, allocations: 342.3 kB / 444.8 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009391/0.2837, allocations: 466.3 kB / 445.3 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001163/0.2838, allocations: 28 kB / 445.3 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001859/0.284, allocations: 24 kB / 445.3 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000282/0.2843, allocations: 227.3 kB / 445.6 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004169/0.2847, allocations: 320.1 kB / 445.9 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006033/0.2853, allocations: 0.6342 MB / 446.5 MB, free: 5.613 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2853, allocations: 4 kB / 446.5 MB, free: 5.609 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2853, allocations: 0 / 446.5 MB, free: 5.609 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.445e-05/0.2854, allocations: 0 / 446.5 MB, free: 5.609 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001727/0.2871, allocations: 0.8436 MB / 447.4 MB, free: 4.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.2872, allocations: 8.031 kB / 447.4 MB, free: 4.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.2873, allocations: 72.09 kB / 447.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008886/0.2882, allocations: 0.5219 MB / 448 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.05e-05/0.2883, allocations: 41.06 kB / 448 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.2884, allocations: 52 kB / 448 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/0.2894, allocations: 0.621 MB / 448.7 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.2894, allocations: 4 kB / 448.7 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.752e-05/0.2895, allocations: 19.98 kB / 448.7 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000122/0.2896, allocations: 40.97 kB / 448.7 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000754/0.2904, allocations: 0.5035 MB / 449.2 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002859/0.2932, allocations: 2.241 MB / 451.5 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007782/0.294, allocations: 0.497 MB / 452 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006787/0.2947, allocations: 337.5 kB / 452.3 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.727e-05/0.2948, allocations: 15.84 kB / 452.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.985e-05/0.2948, allocations: 46.55 kB / 452.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 3.507e-06/0.2949, allocations: 0 / 452.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=47): time 0.003699/0.2986, allocations: 1.738 MB / 454.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.075e-05/0.2986, allocations: 89.17 kB / 454.2 MB, free: 13.58 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004934/0.2991, allocations: 425.8 kB / 454.6 MB, free: 13.15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.016e-05/0.2992, allocations: 33.7 kB / 454.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002087/0.2994, allocations: 300.5 kB / 454.9 MB, free: 12.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.2995, allocations: 161.7 kB / 455.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.321e-05/0.2996, allocations: 49.69 kB / 455.1 MB, free: 12.6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.2998, allocations: 358.8 kB / 455.5 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003025/0.3001, allocations: 189 kB / 455.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003916/0.3005, allocations: 311.6 kB / 456 MB, free: 11.71 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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002821/0.3033, allocations: 1.249 MB / 457.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.3033, allocations: 4 kB / 457.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001455/0.3048, allocations: 0.7065 MB / 457.9 MB, free: 9.672 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.561e-05/0.3048, allocations: 4 kB / 457.9 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.3049, allocations: 4.469 kB / 457.9 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000415/0.3053, allocations: 152.4 kB / 458.1 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004387/0.3057, allocations: 111.8 kB / 458.2 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003473/0.3092, allocations: 2.377 MB / 460.6 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003812/0.3096, allocations: 24.03 kB / 460.6 MB, free: 6.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.716e-05/0.3097, allocations: 23.98 kB / 460.6 MB, free: 6.848 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 sytem: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (54): * Single equations (assignments): 53 * Array equations: 0 * 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 {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004938/0.3102, allocations: 225.6 kB / 460.8 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001496/0.3103, allocations: 51.34 kB / 460.9 MB, free: 6.566 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001435/0.3118, allocations: 0.662 MB / 461.6 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.3118, allocations: 4 kB / 461.6 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.3118, allocations: 4 kB / 461.6 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.3118, allocations: 0 / 461.6 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002472/0.3143, allocations: 1.373 MB / 462.9 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.3143, allocations: 7.938 kB / 462.9 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000364/0.3147, allocations: 80.05 kB / 463 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004853/0.3152, allocations: 140.8 kB / 463.2 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.554e-05/0.3153, allocations: 16.09 kB / 463.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003208/0.3185, allocations: 2.377 MB / 465.6 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.3185, allocations: 7.984 kB / 465.6 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00152/0.32, allocations: 0.9815 MB / 466.5 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001661/0.3202, allocations: 128.5 kB / 466.7 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.508e-05/0.3203, allocations: 8 kB / 466.7 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002567/0.3206, allocations: 19.98 kB / 466.7 MB, free: 488 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.064e-05/0.3207, allocations: 47.88 kB / 466.7 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-05/0.3207, allocations: 19.94 kB / 466.8 MB, free: 420 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003804/0.3211, allocations: 291.1 kB / 467 MB, free: 128 kB / 334.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.3211, allocations: 0 / 467 MB, free: 128 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.00072/0.3218, allocations: 144 kB / 467.2 MB, free: 15.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,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 (41): * Single equations (assignments): 39 * Array equations: 0 * 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 {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001828/0.322, allocations: 111.1 kB / 467.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.3235, allocations: 0.6674 MB / 468 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.251e-06/0.3235, allocations: 0 / 468 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000824/0.3243, allocations: 439.2 kB / 468.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009636/0.3253, allocations: 121.9 kB / 468.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002823/0.3281, allocations: 1.628 MB / 470.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007686/0.3289, allocations: 0.9334 MB / 471.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003834/0.3293, allocations: 104.7 kB / 471.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.3294, allocations: 39.44 kB / 471.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3295, allocations: 0 / 471.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of Templates: time 0.01508/0.3445, allocations: 6.379 MB / 477.6 MB, free: 5.492 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) Environment - environmentSimulation: