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.001252/0.001252, allocations: 111.4 kB / 17.68 MB, free: 5.496 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.001063/0.001063, allocations: 192 kB / 18.62 MB, free: 4.562 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.341/1.341, 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.1765/0.1765, allocations: 37.99 MB / 309.8 MB, free: 5.961 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.001541/0.001541, allocations: 64.45 kB / 376.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2258, allocations: 55.25 MB / 432 MB, free: 19.47 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.005508/0.2313, allocations: 6.085 MB / 438.1 MB, free: 13.36 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00177/0.2331, allocations: 1.446 MB / 439.6 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002154/0.2333, allocations: 27.88 kB / 439.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003957/0.2337, allocations: 142.9 kB / 439.7 MB, free: 11.74 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000679/0.2344, allocations: 386 kB / 440.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003752/0.2348, allocations: 199.4 kB / 440.3 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000601/0.2354, allocations: 0.915 MB / 441.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002617/0.2357, allocations: 282.6 kB / 441.5 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003636/0.2361, allocations: 402.3 kB / 441.9 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004683/0.2366, allocations: 470.3 kB / 442.3 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.114e-05/0.2366, allocations: 51.98 kB / 442.4 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.412e-05/0.2367, allocations: 48 kB / 442.4 MB, free: 9.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001948/0.2369, allocations: 259.3 kB / 442.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002201/0.2371, allocations: 322.3 kB / 443 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004459/0.2376, allocations: 0.6734 MB / 443.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.2376, allocations: 0 / 443.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.2376, allocations: 4 kB / 443.7 MB, free: 7.773 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.2376, allocations: 0 / 443.7 MB, free: 7.773 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.001206/0.2388, allocations: 0.9579 MB / 444.6 MB, free: 6.766 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.085e-05/0.2389, allocations: 11.89 kB / 444.6 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.764e-05/0.239, allocations: 68.09 kB / 444.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000801/0.2398, allocations: 0.5571 MB / 445.3 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.2398, allocations: 37.11 kB / 445.3 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.587e-05/0.2399, allocations: 55.91 kB / 445.4 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006984/0.2406, allocations: 0.621 MB / 446 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.2406, allocations: 3.938 kB / 446 MB, free: 5.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.027e-05/0.2406, allocations: 20 kB / 446 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-05/0.2407, allocations: 36.97 kB / 446 MB, free: 5.285 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006057/0.2414, allocations: 0.5113 MB / 446.6 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002405/0.2438, allocations: 2.218 MB / 448.8 MB, free: 2.461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006517/0.2444, allocations: 493.1 kB / 449.3 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004797/0.2449, allocations: 345.6 kB / 449.6 MB, free: 1.617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.149e-05/0.245, allocations: 4 kB / 449.6 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.022e-05/0.245, allocations: 38.56 kB / 449.6 MB, free: 1.566 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 1.773e-06/0.245, allocations: 0 / 449.6 MB, free: 1.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=47): time 0.002734/0.2477, allocations: 1.758 MB / 451.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.526e-05/0.2478, allocations: 85.05 kB / 451.5 MB, free: 15.63 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004154/0.2482, allocations: 417.9 kB / 451.9 MB, free: 15.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.727e-05/0.2483, allocations: 33.7 kB / 451.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.2485, allocations: 300.4 kB / 452.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.2486, allocations: 161.6 kB / 452.4 MB, free: 14.72 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/0.2488, allocations: 98.28 kB / 452.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.2489, allocations: 362.8 kB / 452.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002874/0.2492, allocations: 185 kB / 453 MB, free: 14.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003619/0.2496, allocations: 315.6 kB / 453.3 MB, free: 13.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.002518/0.2521, allocations: 1.23 MB / 454.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.2521, allocations: 0 / 454.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001105/0.2532, allocations: 0.7104 MB / 455.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/0.2533, allocations: 12.41 kB / 455.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/0.2533, allocations: 11.98 kB / 455.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000379/0.2537, allocations: 136.7 kB / 455.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004326/0.2541, allocations: 107.8 kB / 455.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002817/0.257, allocations: 2.622 MB / 458.1 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003052/0.2573, allocations: 24.03 kB / 458.2 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.609e-05/0.2573, allocations: 23.98 kB / 458.2 MB, free: 8.617 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[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.0002925/0.2576, allocations: 221.6 kB / 458.4 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.983e-05/0.2577, allocations: 51.38 kB / 458.4 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00104/0.2588, allocations: 0.662 MB / 459.1 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.2588, allocations: 8 kB / 459.1 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2588, allocations: 0 / 459.1 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.2588, allocations: 7.938 kB / 459.1 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002155/0.261, allocations: 1.369 MB / 460.5 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.261, allocations: 0 / 460.5 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003499/0.2613, allocations: 76.05 kB / 460.6 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003777/0.2617, allocations: 144.7 kB / 460.7 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.444e-05/0.2618, allocations: 12 kB / 460.7 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002775/0.2645, allocations: 2.621 MB / 463.3 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.2646, allocations: 11.94 kB / 463.4 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001392/0.266, allocations: 0.9893 MB / 464.3 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.2661, allocations: 120.5 kB / 464.5 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.244e-05/0.2662, allocations: 12 kB / 464.5 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000245/0.2664, allocations: 23.92 kB / 464.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.961e-05/0.2665, allocations: 40.22 kB / 464.5 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.951e-05/0.2665, allocations: 16 kB / 464.5 MB, free: 1.949 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003095/0.2669, allocations: 287.1 kB / 464.8 MB, free: 1.672 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.2669, allocations: 0 / 464.8 MB, free: 1.672 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006187/0.2675, allocations: 151.9 kB / 465 MB, free: 1.523 MB / 334.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.0001361/0.2676, allocations: 115.1 kB / 465.1 MB, free: 1.398 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001153/0.2688, allocations: 0.6597 MB / 465.7 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2688, allocations: 0.9375 kB / 465.7 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006234/0.2694, allocations: 446.1 kB / 466.2 MB, free: 284 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007094/0.2702, allocations: 141.5 kB / 466.3 MB, free: 148 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.2722, allocations: 1.307 MB / 467.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005163/0.2727, allocations: 0.9253 MB / 468.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002843/0.273, allocations: 108.7 kB / 468.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.2731, allocations: 43.44 kB / 468.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2732, allocations: 3.938 kB / 468.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of Templates: time 0.01279/0.286, allocations: 6.752 MB / 475.5 MB, free: 6.953 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (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 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)