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.00106/0.00106, allocations: 94.94 kB / 16.3 MB, free: 5.531 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.001024/0.001024, allocations: 178 kB / 17.19 MB, free: 5.465 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.632/1.632, allocations: 205.4 MB / 223.4 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.182/0.182, allocations: 38.05 MB / 309.7 MB, free: 6.137 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.0006021/0.0006022, allocations: 12 kB / 376.5 MB, free: 3.215 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2797, allocations: 56.33 MB / 432.8 MB, free: 18.87 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.00648/0.2863, allocations: 6.223 MB / 439 MB, free: 12.62 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003436/0.2897, allocations: 1.798 MB / 440.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008724/0.2907, allocations: 47.69 kB / 440.9 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004996/0.2912, allocations: 147 kB / 441 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001016/0.2922, allocations: 366.8 kB / 441.4 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007226/0.2929, allocations: 219.6 kB / 441.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005186/0.2935, allocations: 487 kB / 442.1 MB, free: 9.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002779/0.2937, allocations: 192.3 kB / 442.3 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000349/0.2941, allocations: 298.9 kB / 442.6 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000461/0.2946, allocations: 314.9 kB / 442.9 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.045e-05/0.2946, allocations: 32 kB / 442.9 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.068e-05/0.2947, allocations: 24 kB / 442.9 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001821/0.2949, allocations: 219.4 kB / 443.1 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.295, allocations: 137.3 kB / 443.3 MB, free: 8.371 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003961/0.2954, allocations: 0.4948 MB / 443.8 MB, free: 7.875 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2954, allocations: 0 / 443.8 MB, free: 7.875 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.195e-06/0.2954, allocations: 0 / 443.8 MB, free: 7.875 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.531e-05/0.2955, allocations: 0 / 443.8 MB, free: 7.875 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.001595/0.2971, allocations: 0.855 MB / 444.6 MB, free: 6.969 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.2971, allocations: 12.03 kB / 444.6 MB, free: 6.957 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.2972, allocations: 71.11 kB / 444.7 MB, free: 6.887 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008533/0.2981, allocations: 0.4976 MB / 445.2 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.515e-05/0.2981, allocations: 40.94 kB / 445.2 MB, free: 6.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.811e-05/0.2982, allocations: 48 kB / 445.3 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007929/0.299, allocations: 0.621 MB / 445.9 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.2991, allocations: 0 / 445.9 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.952e-05/0.2991, allocations: 20 kB / 445.9 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001075/0.2992, allocations: 36.92 kB / 446 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006544/0.2999, allocations: 0.4996 MB / 446.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002678/0.3026, allocations: 2.249 MB / 448.7 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007982/0.3034, allocations: 493 kB / 449.2 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.716e-05/0.3034, allocations: 8.062 kB / 449.2 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.28e-05/0.3035, allocations: 38.5 kB / 449.2 MB, free: 2.145 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 2.254e-06/0.3035, allocations: 0 / 449.2 MB, free: 2.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=47): time 0.003291/0.3068, allocations: 1.719 MB / 450.9 MB, free: 360 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/0.3069, allocations: 89.06 kB / 451 MB, free: 252 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005591/0.3074, allocations: 422 kB / 451.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.644e-05/0.3075, allocations: 29.7 kB / 451.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002875/0.3078, allocations: 296.5 kB / 451.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/0.308, allocations: 165.6 kB / 451.9 MB, free: 15.33 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.462e-05/0.308, allocations: 15.94 kB / 451.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.3082, allocations: 358.8 kB / 452.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002731/0.3085, allocations: 185 kB / 452.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003382/0.3088, allocations: 303.6 kB / 452.8 MB, free: 14.43 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.001833/0.3107, allocations: 0.7646 MB / 453.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3107, allocations: 0 / 453.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001131/0.3118, allocations: 0.6988 MB / 454.2 MB, free: 12.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.3118, allocations: 4 kB / 454.2 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.3119, allocations: 4 kB / 454.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003936/0.3123, allocations: 144.8 kB / 454.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004427/0.3127, allocations: 111.8 kB / 454.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00265/0.3154, allocations: 2.326 MB / 456.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000329/0.3157, allocations: 24.03 kB / 456.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.758e-05/0.3158, allocations: 27.98 kB / 456.9 MB, free: 10.17 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 (55): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003602/0.3161, allocations: 225.6 kB / 457.1 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.009e-05/0.3162, allocations: 51.34 kB / 457.1 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001067/0.3173, allocations: 0.6425 MB / 457.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.3173, allocations: 8 kB / 457.8 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.3173, allocations: 0 / 457.8 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/0.3173, allocations: 3.984 kB / 457.8 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002142/0.3195, allocations: 1.364 MB / 459.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.3195, allocations: 4 kB / 459.2 MB, free: 7.777 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003412/0.3199, allocations: 75.89 kB / 459.2 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004099/0.3203, allocations: 144.7 kB / 459.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.754e-05/0.3203, allocations: 19.95 kB / 459.4 MB, free: 7.539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002666/0.323, allocations: 2.346 MB / 461.7 MB, free: 5.062 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.323, allocations: 0 / 461.7 MB, free: 5.062 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001479/0.3245, allocations: 1.041 MB / 462.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001669/0.3247, allocations: 120.5 kB / 462.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.63e-05/0.3248, allocations: 16.12 kB / 462.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/0.325, allocations: 19.98 kB / 462.9 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.674e-05/0.3251, allocations: 40.47 kB / 463 MB, free: 3.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.247e-05/0.3251, allocations: 19.94 kB / 463 MB, free: 3.723 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003994/0.3255, allocations: 283.1 kB / 463.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3256, allocations: 0 / 463.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007193/0.3263, allocations: 148 kB / 463.4 MB, free: 3.301 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002048/0.3265, allocations: 107.2 kB / 463.5 MB, free: 3.188 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001153/0.3277, allocations: 0.6519 MB / 464.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3277, allocations: 0 / 464.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006209/0.3283, allocations: 434.1 kB / 464.6 MB, free: 2.086 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006326/0.3289, allocations: 122.4 kB / 464.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.3312, allocations: 1.579 MB / 466.3 MB, free: 352 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005791/0.3318, allocations: 0.9451 MB / 467.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003535/0.3322, allocations: 108.7 kB / 467.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.984e-05/0.3323, allocations: 35.44 kB / 467.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3323, allocations: 0 / 467.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of Templates: time 0.01163/0.3439, allocations: 6.064 MB / 473.4 MB, free: 9.188 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: