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.001332/0.001332, allocations: 92.53 kB / 16.3 MB, free: 5.598 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.001078/0.001078, allocations: 186.5 kB / 17.2 MB, free: 5.531 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.591/1.591, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1912/0.1912, allocations: 38.04 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.0005552/0.0005553, allocations: 12 kB / 376.5 MB, free: 3.211 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.289, allocations: 56.32 MB / 432.8 MB, free: 18.85 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.006885/0.296, allocations: 6.605 MB / 439.4 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004166/0.3002, allocations: 2.207 MB / 441.6 MB, free: 10 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001253/0.3015, allocations: 47.69 kB / 441.7 MB, free: 9.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000927/0.3024, allocations: 163 kB / 441.8 MB, free: 9.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001913/0.3044, allocations: 386.8 kB / 442.2 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001233/0.3056, allocations: 362.7 kB / 442.6 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006769/0.3063, allocations: 0.5384 MB / 443.1 MB, free: 8.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008265/0.3072, allocations: 0.6445 MB / 443.7 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004069/0.3076, allocations: 330.8 kB / 444.1 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005105/0.3081, allocations: 422.7 kB / 444.5 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.995e-05/0.3082, allocations: 36 kB / 444.5 MB, free: 7.074 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003614/0.3085, allocations: 175.7 kB / 444.7 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002282/0.3088, allocations: 307.2 kB / 445 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001253/0.3089, allocations: 161.3 kB / 445.1 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005776/0.3095, allocations: 0.756 MB / 445.9 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.3095, allocations: 0 / 445.9 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3095, allocations: 4 kB / 445.9 MB, free: 5.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.3095, allocations: 0 / 445.9 MB, free: 5.676 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.001873/0.3114, allocations: 0.9921 MB / 446.9 MB, free: 4.633 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/0.3115, allocations: 15.97 kB / 446.9 MB, free: 4.617 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007788/0.3123, allocations: 130.9 kB / 447 MB, free: 4.488 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.3133, allocations: 0.5717 MB / 447.6 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.738e-05/0.3133, allocations: 45.31 kB / 447.6 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.3135, allocations: 68 kB / 447.7 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.3147, allocations: 1.006 MB / 448.7 MB, free: 2.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.491e-05/0.3147, allocations: 7.938 kB / 448.7 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.256e-05/0.3148, allocations: 20 kB / 448.7 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001984/0.315, allocations: 69.95 kB / 448.8 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00118/0.3162, allocations: 0.968 MB / 449.8 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004505/0.3207, allocations: 3.272 MB / 453.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.3218, allocations: 0.7109 MB / 453.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.125e-05/0.3219, allocations: 12.77 kB / 453.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.3219, allocations: 39.12 kB / 453.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of pre-optimization done (n=73): time 2.334e-06/0.3219, allocations: 4 kB / 453.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=75): time 0.003733/0.3257, allocations: 2.557 MB / 456.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.289e-05/0.3257, allocations: 89.8 kB / 456.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000484/0.3262, allocations: 437.8 kB / 456.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.841e-05/0.3263, allocations: 49.58 kB / 456.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00024/0.3265, allocations: 351.6 kB / 457.3 MB, free: 9.832 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002128/0.3267, allocations: 264.2 kB / 457.5 MB, free: 9.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.669e-05/0.3268, allocations: 16 kB / 457.6 MB, free: 9.555 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002071/0.327, allocations: 374.7 kB / 457.9 MB, free: 9.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004839/0.3275, allocations: 337.8 kB / 458.3 MB, free: 8.852 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006047/0.3281, allocations: 0.5108 MB / 458.8 MB, free: 8.27 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.003823/0.3319, allocations: 1.4 MB / 460.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.332, allocations: 4 kB / 460.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001553/0.3335, allocations: 1.075 MB / 461.2 MB, free: 5.746 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.3335, allocations: 8 kB / 461.2 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.3336, allocations: 4 kB / 461.3 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001443/0.3337, allocations: 32.84 kB / 461.3 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000757/0.3345, allocations: 208 kB / 461.5 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001109/0.3356, allocations: 1.335 MB / 462.8 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004164/0.336, allocations: 40.03 kB / 462.9 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.753e-05/0.3361, allocations: 31.98 kB / 462.9 MB, free: 3.957 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[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 (96): * Single equations (assignments): 93 * Array equations: 2 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004215/0.3365, allocations: 277.5 kB / 463.2 MB, free: 3.676 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.3367, allocations: 59.25 kB / 463.2 MB, free: 3.617 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001397/0.3381, allocations: 0.9544 MB / 464.2 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-05/0.3381, allocations: 19.95 kB / 464.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.3381, allocations: 0 / 464.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.3381, allocations: 3.984 kB / 464.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003061/0.3412, allocations: 1.989 MB / 466.2 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.3412, allocations: 4.562 kB / 466.2 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006832/0.3419, allocations: 167.7 kB / 466.4 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.455e-05/0.342, allocations: 36.78 kB / 466.4 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.69e-05/0.3421, allocations: 20 kB / 466.4 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.3432, allocations: 1.331 MB / 467.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.3432, allocations: 4 kB / 467.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002265/0.3455, allocations: 1.732 MB / 469.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.3457, allocations: 144.3 kB / 469.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.296e-05/0.3457, allocations: 27.98 kB / 469.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003478/0.3461, allocations: 39.95 kB / 469.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.442e-05/0.3462, allocations: 56.39 kB / 469.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-05/0.3463, allocations: 24 kB / 469.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003196/0.3466, allocations: 299.1 kB / 470.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3466, allocations: 4 kB / 470.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007364/0.3473, allocations: 180 kB / 470.2 MB, free: 12.07 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 (76): * Single equations (assignments): 72 * Array equations: 2 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002413/0.3476, allocations: 139 kB / 470.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001383/0.349, allocations: 0.9342 MB / 471.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.165e-06/0.349, allocations: 0 / 471.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000632/0.3496, allocations: 0.5192 MB / 471.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006459/0.3503, allocations: 122.3 kB / 471.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003067/0.3534, allocations: 2.38 MB / 474.3 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006244/0.354, allocations: 1.021 MB / 475.3 MB, free: 6.816 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005845/0.3546, allocations: 209.4 kB / 475.6 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/0.3548, allocations: 59.42 kB / 475.6 MB, free: 6.551 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3548, allocations: 0 / 475.6 MB, free: 6.551 MB / 350.1 MB Notification: Performance of Templates: time 0.01274/0.3675, allocations: 7.221 MB / 482.8 MB, free: 15.35 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: